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

Disassembly:
push 0xffffffffffffffff
push 0x424db8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43d3c0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, dword [esp + 0x80]
mov ecx, edi
call dword [0x42f238]
test al, al
jne 0x41a13d
xor ebx, ebx
push ebx
call fcn.00417b10
add esp, 4
push ebx
push 1
mov ebp, eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x24]
push edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call edx
mov ecx, 0x43de68
mov dword [esp + 0x78], ebx
call dword [0x42f60c]
push eax
lea ecx, [esp + 0x18]
call dword [0x42f3f8]
test eax, eax
jne 0x41a0c9
push 0x2e
mov ecx, edi
call dword [0x42f2c8]
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call dword [0x42f2c0]
mov ecx, dword [esp + 0x88]
mov esi, dword [esp + 0x84]
push ecx
push esi
push eax
mov byte [esp + 0x84], 1
call fcn.00419f40
add esp, 0xc
lea ecx, [esp + 0x18]
mov ebp, eax
mov byte [esp + 0x78], bl
call dword [0x42f648]
cmp ebp, ebx
je 0x41a133
mov edx, dword [0x42f648]
mov eax, dword [0x42f624]
push edx
push eax
push 2
push 4
lea ecx, [esp + 0x28]
push ecx
call fcn.00422b19
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x1c]
push eax
push edi
mov byte [esp + 0x84], 2
call fcn.00419e80
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00419d50
add esp, 0x18
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 3
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebx
call fcn.00421970
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
mov edx, dword [eax + 8]
sub edx, dword [eax]
mov dword [esi + 4], ecx
lea ecx, [esp + 0x20]
mov dword [esi], edx
mov byte [esp + 0x78], 2
call fcn.0040eb10
mov eax, dword [0x42f648]
push eax
push 2
push 4
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x88], bl
call fcn.00422ab6
jmp 0x41a228
lea ecx, [esp + 0x5c]
call fcn.004224aa
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x18]
push 0x2c
push eax
mov byte [esp + 0x84], 4
call fcn.00419b80
add esp, 0xc
cmp eax, 2
je 0x41a153
push 0x431854
lea ecx, [esp + 0x1c]
call dword [0x42f690]
mov edx, dword [ebp]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x18]
push eax
push 1
push edi
mov ecx, ebp
mov byte [esp + 0x84], 5
call edx
lea ecx, [esp + 0x18]
call dword [0x42f648]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x78], bl
call fcn.00422486
lea ecx, [esp + 0x14]
call dword [0x42f648]
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
xor esi, esi
cmp esi, ebx
jl 0x41a187
cmp esi, dword [esp + 0x64]
jge 0x41a187
mov eax, dword [esp + 0x60]
lea ecx, [eax + esi*4]
call dword [0x42f60c]
push eax
call fcn.00418920
add esp, 4
test eax, eax
je 0x41a18c
add esi, 1
cmp esi, 2
jl 0x41a155
cmp dword [esp + 0x64], ebx
jg 0x41a1c7
jmp fcn.004224a4
cmp esi, dword [esp + 0x64]
jge 0x41a187
mov ecx, dword [esp + 0x60]
lea eax, [ecx + esi*4]
push 0x431844
push eax
lea edx, [esp + 0x20]
push edx
call fcn.00401f70
add esp, 0xc
mov edx, dword [ebp]
push eax
mov eax, dword [edx + 0x3c]
push 1
push edi
mov ecx, ebp
mov byte [esp + 0x84], 6
call eax
jmp 0x41a11c
mov ecx, dword [esp + 0x60]
call dword [0x42f60c]
mov edi, dword [0x42f898]
push eax
call edi
mov esi, dword [esp + 0x88]
add esp, 4
cmp dword [esp + 0x64], 1
mov dword [esi], eax
jg 0x41a1f2
jmp fcn.004224a4
mov ecx, dword [esp + 0x60]
add ecx, 4
call dword [0x42f60c]
push eax
call edi
mov ecx, dword [esp + 0x8c]
mov dword [esi + 4], eax
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
sub dword [esi], edx
sub eax, ecx
add esp, 4
lea ecx, [esp + 0x5c]
mov dword [esi + 4], eax
mov byte [esp + 0x78], bl
call fcn.00422486
lea ecx, [esp + 0x14]
call dword [0x42f648]
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret