Function at 0x41b5b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x40
push ebx
push ebp
mov ebp, ecx
push esi
xor esi, esi
push edi
lea eax, [ebp + 0xa4]
mov dword [esp + 0x24], ebp
cmp eax, esi
mov dword [esp + 0x18], eax
je 0x41b5d5
lea eax, [ebp + 0xa8]
jmp 0x41b5d7
xor eax, eax
cmp dword [eax], esi
jne 0x41b5e7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret 4
lea ecx, [ebp + 0x20]
call fcn.004203e0
mov edi, eax
push 1
mov ecx, edi
mov dword [esp + 0x2c], edi
call fcn.0041f220
mov ebx, eax
cmp ebx, esi
mov dword [esp + 0x2c], ebx
jg 0x41b614
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret 4
push 1
mov ecx, edi
call fcn.0041f260
test eax, eax
jg 0x41b62d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret 4
mov ecx, dword [ebp + 0xa8]
lea eax, [esp + 0x40]
push eax
push ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebp, dword [esp + 0x54]
mov edx, dword [esp + 0x48]
push 1
push 1
mov eax, dword [ebp]
add edx, 0xffffffc4
mov dword [esp + 0x3c], eax
add eax, 0x14
mov dword [esp + 0x44], eax
lea eax, [esp + 0x38]
push esi
push eax
mov ecx, edi
mov dword [esp + 0x40], 0x1e
mov dword [esp + 0x48], edx
call fcn.0041f210
mov ecx, dword [esp + 0x28]
add eax, 0x20
push eax
call fcn.00415dc0
push 0x14
lea ecx, [esp + 0x34]
push esi
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp]
mov dword [esp + 0x54], esi
add ecx, 0x14
cmp ebx, esi
mov dword [ebp], ecx
mov edx, dword [0x4881a0]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
jle 0x41b829
push esi
push 1
mov ecx, edi
call fcn.0041f2d0
mov ebx, eax
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x41b818
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
push eax
push ecx
call fcn.0044bf2b
add esp, 8
test eax, eax
setge al
and eax, 0xff
mov dword [esp + 0x20], eax
je 0x41b818
mov ecx, dword [ebx + 8]
mov eax, dword [ecx - 8]
test eax, eax
je 0x41b818
mov eax, dword [esp + 0x10]
mov edx, ecx
cmp eax, edx
mov dword [esp + 0x1c], edx
je 0x41b7d4
mov edi, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edi, edi
jge 0x41b733
lea edi, [eax - 0xc]
cmp edi, dword [0x4881a4]
jne 0x41b73a
mov edi, dword [edx - 0xc]
test edi, edi
jge 0x41b791
mov edi, dword [edx - 8]
lea ecx, [esp + 0x10]
push edi
mov dword [esp + 0x24], edi
call fcn.00403900
test eax, eax
je 0x41b7d4
lea eax, [edi + edi]
lea edx, [edi + edi + 2]
cmp edx, eax
jb 0x41b77e
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], edi
mov edx, dword [esp + 0x10]
mov word [eax + edx], 0
jmp 0x41b7d4
mov edx, dword [0x4881a4]
add eax, 0xfffffff4
cmp eax, edx
je 0x41b7c3
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41b7b9
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004472d3
add esp, 4
mov ecx, dword [0x4881a0]
mov dword [esp + 0x10], ecx
mov eax, dword [ebx + 8]
mov dword [esp + 0x10], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
lea edx, [esi + 0x27d8]
push 0
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esp + 0x38]
push ebx
call fcn.0041baf0
push 0x14
lea edx, [esp + 0x34]
push 0
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp]
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x28]
add ecx, 0x14
inc eax
mov dword [ebp], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
mov dword [esp + 0x14], esi
jl 0x41b6c3
mov ecx, dword [esp + 0x18]
call fcn.00415610
mov eax, dword [esp + 0x10]
mov edx, dword [0x4881a4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41b861
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41b861
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004472d3
add esp, 4
mov eax, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4