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

Disassembly:
sub esp, 0x88
mov edx, dword [esp + 0xa0]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0xa4]
mov eax, dword [ecx]
mov ebx, dword [ecx + 8]
movzx ebp, byte [esi + 0x20]
sub ebx, eax
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0xc]
push edi
mov edi, dword [ecx + 4]
sub eax, edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xac]
mov dword [esi + 0x1980], eax
mov eax, dword [esi + 0x54]
mov dword [esi + 0x1984], edx
lea edx, [eax*8]
shr ebp, 3
sub edx, eax
imul ebp, dword [edx*8 + 0x44b948]
cmp dword [esi + 0x1978], ebp
mov dword [esp + 0x38], ebx
jge 0x41f07b
mov eax, dword [esi + 0x1974]
test eax, eax
je 0x41f01e
push eax
call fcn.00432002
add esp, 4
lea eax, [ebp + 1]
push eax
call fcn.00432007
add esp, 4
test eax, eax
mov dword [esi + 0x1974], eax
jne 0x41f06e
mov ecx, dword [esi + 0x1984]
mov edx, dword [esi + 0x1980]
mov eax, dword [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0xa8]
push edx
mov edx, dword [esp + 0xa4]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0041a910
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x18
mov ecx, dword [esp + 0xa8]
mov dword [esi + 0x1978], ebp
cmp byte [esi + 0x21], 0x18
jne 0x41f0a1
mov eax, 0xff
cmp word [esi + 0x24], ax
jne 0x41f0a1
cmp word [esi + 0x26], ax
jne 0x41f0a1
cmp word [esi + 0x28], ax
jne 0x41f0a1
mov byte [esi + 0x1988], 1
jmp 0x41f0a8
mov byte [esi + 0x1988], 0
cmp dword [esi + 0x64], 0
je 0x41f465
mov eax, dword [esp + 0x10]
imul eax, ebx
cmp eax, 0x1000
mov dword [esp + 0x34], eax
jl 0x41f465
mov eax, dword [esi + 0x54]
lea ecx, [eax*8]
sub ecx, eax
add ecx, ecx
add ecx, ecx
mov eax, dword [ecx + ecx + 0x44b948]
add ecx, ecx
mov ecx, dword [ecx + 0x44b94c]
cmp ebx, ecx
jg 0x41f0ed
mov ecx, ebx
cdq
idiv ecx
mov ecx, dword [esp + 0x10]
add ecx, edi
cmp edi, ecx
mov ebp, edi
mov dword [esp + 0x24], eax
jge 0x41f274
mov edx, dword [esp + 0x14]
lea ecx, [ebx + edx]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov ecx, eax
imul ecx, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x40], ecx
jmp 0x41f126
mov eax, dword [esp + 0x24]
mov ecx, ebp
sub ecx, edi
cmp ecx, eax
jl 0x41f18c
mov edx, dword [esp + 0x1c]
lea ebx, [eax + edi]
mov eax, dword [esp + 0x14]
push ebx
push edx
push edi
push eax
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x9c]
lea edx, [esp + 0x48]
push edx
push edi
push eax
push ecx
mov ecx, esi
call fcn.0041edf0
mov ecx, dword [esp + 0xa0]
push eax
push edi
call fcn.004177c0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
sub dword [esp + 0x10], edx
sub dword [esp + 0x18], eax
mov edi, ebx
mov edx, dword [esp + 0x10]
lea ecx, [ebp + 0x10]
lea eax, [edx + edi]
cmp ecx, eax
mov dword [esp + 0x3c], ecx
jg 0x41f1a8
mov dword [esp + 0x28], 0x10
jmp 0x41f1b2
mov eax, edx
sub eax, ebp
add eax, edi
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0x14]
mov edx, ebx
cmp edx, dword [esp + 0x1c]
jge 0x41f263
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
lea ebx, [ebx]
lea eax, [ebx + 0x10]
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov eax, 0x10
jle 0x41f1e6
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x38]
push ecx
push edx
push eax
mov eax, dword [esp + 0xac]
push ebp
push ebx
push eax
mov ecx, esi
call fcn.0041dc70
test al, al
je 0x41f24c
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0xa8]
sub ecx, ebp
add ecx, edi
push ecx
push edx
push ebp
push ebx
push eax
mov ecx, esi
call fcn.0041e2f0
mov eax, dword [esp + 0x2c]
imul eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x18]
je 0x41f281
cmp eax, 0x800
jge 0x41f281
mov ebx, dword [esp + 0x44]
sub dword [esp + 0x30], 0x10
cmp ebx, dword [esp + 0x1c]
jl 0x41f1d0
mov ecx, dword [esp + 0x3c]
mov ebp, ecx
mov ecx, dword [esp + 0x10]
lea eax, [ecx + edi]
cmp ebp, eax
jl 0x41f122
mov eax, dword [esp + 0xa8]
push eax
jmp 0x41f466
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0xb0]
push ecx
push edx
mov dword [esp + 0x44], ebp
mov ebp, dword [esp + 0x30]
push edi
push ebp
push eax
mov ecx, esi
mov dword [esp + 0x4c], ebx
call fcn.0041e460
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
push edi
push ebp
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
add eax, ebx
push eax
push ebp
push ebx
push ecx
lea edx, [esp + 0x78]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add eax, ebx
push eax
push ecx
push ebx
lea eax, [edx + ebp]
push eax
lea ecx, [esp + 0x88]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add edx, edi
push edx
mov edx, dword [esp + 0x18]
push eax
lea eax, [ebx + ecx]
push eax
push edx
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.USER32.dll_SetRect]
xor edx, edx
mov dword [esp + 0x18], edx
cmp edx, 2
jne 0x41f3e7
lea ecx, [ebx + 1]
push ecx
lea edx, [ebp + 1]
push edx
push ebx
push ebp
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esi + 0x1974]
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0xa0]
push ecx
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push ebx
push ebp
mov ecx, esi
call fcn.0041c3f0
mov edx, dword [esp + 0xa4]
push edx
call fcn.0041dc90
mov ecx, dword [esi + 0x196c]
mov edi, eax
mov eax, dword [esi + 0x1970]
push eax
push ecx
mov ecx, dword [esp + 0xa8]
call fcn.004177c0
mov edx, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa0]
push edi
push edx
call fcn.004177c0
mov eax, dword [esi + 0x1970]
mov edx, dword [esp + 0x18]
lea ecx, [eax + edi - 0xc]
add dword [esi + 0x4c], ecx
add eax, edi
add dword [esi + 0x50], eax
mov eax, edx
shl eax, 4
mov edi, dword [esp + eax + 0x58]
cmp edi, dword [esp + eax + 0x60]
lea ecx, [esp + eax + 0x58]
je 0x41f446
mov edi, dword [esp + eax + 0x5c]
cmp edi, dword [esp + eax + 0x64]
je 0x41f446
mov eax, dword [esi + 0x1984]
mov edi, dword [esp + 0xa4]
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
push eax
mov eax, dword [esi + 0x1980]
push eax
mov eax, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0xac]
push edi
push ecx
push eax
mov ecx, esi
call edx
mov ecx, dword [esp + 0xa0]
push eax
push edi
call fcn.004177c0
mov edx, dword [esp + 0x18]
add edx, 1
cmp edx, 4
mov dword [esp + 0x18], edx
jl 0x41f345
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x88
ret 0x18
push ecx
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0041edf0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x18