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

Disassembly:
push 0xffffffffffffffff
push 0x4fb848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
mov edx, ecx
push ebx
xor ebx, ebx
push ebp
mov eax, dword [edx + 8]
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x3c], edx
jne 0x418752
xor eax, eax
jmp 0x41896d
mov ecx, dword [eax + 8]
mov esi, dword [edx + 0xc]
cmp ecx, ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], ebx
jle 0x418968
mov dword [esp + 0x20], ebx
jmp 0x418776
mov ebx, dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ebp, dword [esp + 0x20]
add edi, ebp
mov dword [esp + 0x30], edi
mov ebp, dword [edi]
add ebp, ebx
test esi, esi
jne 0x418790
mov ebp, dword [edi + 8]
add ebp, ebx
mov eax, dword [edi + 0x18]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x14], ecx
jle 0x418946
mov eax, dword [edi + 0x14]
mov al, byte [ecx + eax]
test al, al
jne 0x4188b5
test ebp, ebp
jl 0x418998
mov eax, dword [esp + 0x78]
cmp ebp, dword [eax + 8]
jge 0x418998
mov edx, dword [eax + 4]
lea esi, [ebp*4]
push ecx
lea ecx, [esp + 0x30]
mov eax, dword [esi + edx]
lea ebx, [edi + 0x24]
push ecx
mov ecx, ebx
mov dword [esp + 0x30], eax
call fcn.00418660
mov edx, dword [esp + 0x28]
mov eax, dword [eax]
push edx
push eax
call fcn.004bf957
add esp, 8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], eax
call fcn.004dbec1
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4188ae
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x54], 4
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x1c]
add esi, edx
push esi
call fcn.004dbc2e
lea edx, [esp + 0x1c]
push 0
push edx
lea ecx, [esp + 0x48]
mov dword [esp + 0x78], 0
call fcn.0046d110
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, ebx
call fcn.00418660
lea edx, [esp + 0x18]
push 0
push edx
lea ecx, [esp + 0x48]
mov byte [esp + 0x78], 1
call fcn.0046d110
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.004bf957
add esp, 8
mov byte [esp + 0x70], 0
test eax, eax
lea ecx, [esp + 0x18]
jne 0x418982
call fcn.004dbec1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x70], 0xffffffff
call fcn.004dbec1
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
inc ebp
jmp 0x41892e
cmp al, 1
jne 0x4188bd
test esi, esi
jne 0x4188c5
cmp al, 2
jne 0x4188e0
test esi, esi
jne 0x4188e0
mov ecx, dword [esp + 0x78]
cmp dword [ecx + 8], ebp
jle 0x418998
push 1
push ebp
call fcn.004d6527
dec dword [esp + 0x10]
jmp 0x41892e
cmp al, 1
jne 0x4188e8
test esi, esi
je 0x4188f0
cmp al, 2
jne 0x418932
test esi, esi
je 0x418932
lea edx, [esp + 0x38]
push ecx
push edx
lea ecx, [edi + 0x24]
call fcn.00418660
mov ecx, dword [esp + 0x78]
push 1
push eax
push ebp
mov dword [esp + 0x7c], 2
call fcn.004d64ee
lea ecx, [esp + 0x38]
mov dword [esp + 0x70], 0xffffffff
call fcn.004dbec1
mov ecx, dword [esp + 0x10]
inc ecx
inc ebp
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x18]
inc ecx
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x4187a1
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
inc ecx
mov edi, dword [eax + 8]
add ebx, 0x38
cmp ecx, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ebx
jl 0x418772
mov eax, 1
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 4
call fcn.004dbec1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x70], 0xffffffff
call fcn.004dbec1
xor eax, eax
jmp 0x41896d