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

Disassembly:
sub esp, 0x78
push ebp
xor ebp, ebp
push esi
mov esi, eax
mov eax, 4
mov edx, 1
add dword [esi + 0x94], edx
mov ecx, 2
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x94]
push edi
mov edi, 8
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
cmp eax, dword [esi + 0x80]
jb 0x41f882
cmp byte [esi + 0xd3], 0
push ebx
je 0x41f714
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x98]
add eax, edx
push eax
push ebp
push ecx
mov dword [esi + 0x94], ebp
call fcn.00427e80
add esp, 0xc
jmp 0x41f685
mov edi, 8
inc byte [esi + 0xd4]
mov bl, byte [esi + 0xd4]
cmp bl, 7
jae 0x41f714
mov edx, dword [esi + 0x78]
movzx ecx, bl
add ecx, ecx
add ecx, ecx
sub edx, dword [esp + ecx + 0x34]
mov edi, dword [esp + ecx + 0x18]
lea eax, [edx + edi - 1]
xor edx, edx
div edi
mov edi, eax
mov al, byte [esi + 0xd9]
cmp al, 8
mov dword [esi + 0x90], edi
movzx eax, al
jb 0x41f6cd
shr eax, 3
imul eax, edi
jmp 0x41f6d6
imul eax, edi
add eax, 7
shr eax, 3
inc eax
test byte [esi + 0x20], 2
mov dword [esi + 0x8c], eax
jne 0x41f706
mov eax, dword [esi + 0x7c]
sub eax, dword [esp + ecx + 0x6c]
mov ebp, dword [esp + ecx + 0x50]
lea eax, [eax + ebp - 1]
xor edx, edx
div ebp
xor ebp, ebp
mov dword [esi + 0x80], eax
test edi, edi
je 0x41f680
cmp bl, 7
jb 0x41f881
mov edi, 8
test byte [esi + 0x1c], 0x20
jne 0x41f876
lea ecx, [esp + 0x13]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], 1
lea esp, [esp]
cmp dword [esi + 0x28], ebp
jne 0x41f852
cmp dword [esi + 0xbc], ebp
jne 0x41f80e
lea ebp, [esi + 0xcc]
jmp 0x41f750
xor eax, eax
mov ecx, esi
call fcn.0041e620
mov eax, dword [esi + 0x10]
test eax, eax
je 0x41f76d
push 4
lea edx, [esp + 0x18]
push edx
push esi
call eax
add esp, 0xc
mov eax, dword [esp + 0x14]
movzx ecx, al
shl ecx, 8
movzx edx, ah
movzx eax, byte [esp + 0x16]
add ecx, edx
movzx edx, byte [esp + 0x17]
shl ecx, 8
add ecx, eax
mov eax, dword [esi + 0x10]
shl ecx, 8
add ecx, edx
mov dword [esi + 0xbc], ecx
mov dword [esi + 0xc0], 0
test eax, eax
je 0x41f7b0
push 4
push ebp
push esi
call eax
add esp, 0xc
test byte [ebp], 0x20
je 0x41f7c7
mov eax, dword [esi + 0x1c]
and eax, 0x300
cmp eax, 0x300
jne 0x41f7d0
jmp 0x41f801
test dword [esi + 0x1c], 0x800
jne 0x41f801
mov edi, dword [esi + 0xc0]
test ebp, ebp
jne 0x41f7de
xor eax, eax
jmp 0x41f7fb
mov ecx, dword [0x440540]
test ecx, ecx
je 0x41f7ed
call fcn.00420ff0
mov edx, 4
mov ecx, ebp
mov eax, edi
call fcn.004211e0
mov dword [esi + 0xc0], eax
cmp dword [esi + 0xbc], 0
je 0x41f750
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0xbc]
mov edi, dword [esi + 0x5c]
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], edi
cmp eax, ecx
jbe 0x41f827
mov dword [esi + 0x28], ecx
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x28]
test eax, eax
je 0x41f839
push ebx
push edi
push esi
call eax
add esp, 0xc
push ebx
mov ebx, edi
call fcn.0041e410
mov edx, dword [esi + 0x28]
sub dword [esi + 0xbc], edx
add esp, 4
xor ebp, ebp
lea edi, [ebp + 8]
lea eax, [esi + 0x24]
push eax
call fcn.004200e0
add esp, 4
cmp eax, 1
je 0x41f86c
cmp dword [esi + 0x34], ebp
jne 0x41f730
or dword [esi + 0x18], edi
or dword [esi + 0x1c], 0x20
mov dword [esi + 0x34], ebp
lea edx, [esi + 0x24]
call fcn.0041fd90
or dword [esi + 0x18], edi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x78
ret