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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp byte [eax + 0x6a], 0
je 0x41f91e
mov eax, dword [0x8fa818]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
call fcn.00403268
mov dword [ebp - 0x10], eax
mov eax, dword [0x8fa818]
mov eax, dword [eax]
cmp dword [eax + 0x3c], 0
jbe 0x41f715
push 0
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x8fa818]
mov eax, dword [eax]
mov eax, dword [eax + 4]
call fcn.00404f04
push eax
call fcn.0041a800
push 0
push 0
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x88]
mov ecx, 0x40
call fcn.0040da78
lea eax, [ebp - 0x24]
push eax
push 0
push 0x80
push 1
push 1
push 0x60
push 0
push 0
lea ecx, [ebp - 0x88]
lea eax, [ebp - 0x1c]
mov edx, 0x80100080
call fcn.0041c494
test eax, eax
jne 0x41f70c
mov eax, dword [0x8fa818]
mov eax, dword [eax]
mov eax, dword [eax + 0x34]
xor edx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [0x8fa818]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
call fcn.00403268
mov ebx, eax
push 0
lea eax, [ebp - 0x24]
push eax
push ebx
mov eax, dword [0x8fa818]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x1c]
call fcn.0041c43c
test eax, eax
jne 0x41f6fd
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.0041d2ec
mov eax, ebx
call fcn.00403288
mov eax, dword [ebp - 0x1c]
call fcn.0041c3b4
lea eax, [ebp - 0x18]
push eax
call fcn.0041a810
mov edx, dword [ebp - 0x10]
mov eax, edx
mov ebx, dword [eax + 0x3c]
add ebx, edx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebx + 0x50]
xor edx, edx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
push 5
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [0x8fa818]
mov eax, dword [eax]
mov eax, dword [eax + 0x2c]
call fcn.00403268
mov dword [ebp - 0x10], eax
mov eax, dword [0x8fa818]
mov eax, dword [eax]
cmp dword [eax + 0x30], 0
jbe 0x41fa0e
push 0
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x8fa818]
mov eax, dword [eax]
mov eax, dword [eax + 4]
call fcn.00404f04
push eax
call fcn.0041a800
push 0
push 0
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x88]
mov ecx, 0x40
call fcn.0040da78
lea eax, [ebp - 0x24]
push eax
push 0
push 0x80
push 1
push 1
push 0x60
push 0
push 0
lea ecx, [ebp - 0x88]
lea eax, [ebp - 0x1c]
mov edx, 0x80100080
call fcn.0041c494
test eax, eax
jne 0x41fa05
mov eax, dword [0x8fa818]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
xor edx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [0x8fa818]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
call fcn.00403268
mov ebx, eax
push 0
lea eax, [ebp - 0x24]
push eax
push ebx
mov eax, dword [0x8fa818]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x1c]
call fcn.0041c43c
test eax, eax
jne 0x41f9f6
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.0041d2ec
mov eax, ebx
call fcn.00403288
mov eax, dword [ebp - 0x1c]
call fcn.0041c3b4
lea eax, [ebp - 0x18]
push eax
call fcn.0041a810
mov edx, dword [ebp - 0x10]
mov eax, edx
mov ebx, dword [eax + 0x3c]
add ebx, edx
push 0x40
push 0x1000
mov eax, dword [ebx + 0x50]
push eax
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax]
push eax
call fcn.00406e1c
xor edx, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov eax, dword [ebx + 0x50]
call fcn.00403268
mov edi, eax
mov edx, dword [ebx + 0x50]
mov eax, edi
call fcn.00406ed0
mov ecx, dword [ebx + 0x54]
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.00406ec8
movzx esi, word [ebx + 6]
dec esi
test esi, esi
jl 0x41faab
inc esi
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*4]
cmp dword [ebx + eax*8 + 0x10c], 0
jbe 0x41faa5
mov edx, dword [ebx + eax*8 + 0x108]
push edx
mov edx, dword [ebp - 0xc]
lea edx, [edx + edx*4]
mov edx, dword [ebx + edx*8 + 0x10c]
add edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebx + eax*8 + 0x104]
add eax, edi
pop edx
pop ecx
call fcn.00406ec8
inc dword [ebp - 0xc]
dec esi
jne 0x41fa6c
mov eax, dword [ebp - 0x10]
call fcn.00403288
mov ecx, edi
mov eax, ecx
mov ebx, dword [eax + 0x3c]
add ebx, ecx
mov esi, dword [ebx + 0xa0]
test esi, esi
je 0x41fade
mov eax, dword [ebp - 0x38]
sub eax, dword [ebx + 0x34]
xor edx, edx
push edx
push eax
mov edx, esi
add edx, ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0041f458
xor eax, eax
mov dword [ebp - 0x4c], eax
cmp dword [ebx + 0x78], 0
je 0x41fafd
mov ecx, 0x8dc4b0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, edi
call fcn.0041f504
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebx + 0x50]
push eax
push edi
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax]
push eax
call fcn.00406e64
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax]
push eax
call fcn.00406ba4
mov eax, edi
call fcn.00403288