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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
mov ebp, dword [0x42b060]
push esi
push edi
mov edi, eax
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
mov esi, ecx
mov ecx, dword [esi + 0x34]
push 0x18
push ecx
mov dword [esp + 0x24], edi
call ebp
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x6c]
mov ebx, dword [esi + 0x70]
cdq
sub ebx, ecx
idiv ebx
add eax, 1
mov dword [esp + 0x14], eax
jns 0x422ae0
mov dword [esp + 0x14], 0
xor eax, eax
cmp dword [esp + 0x7c], eax
mov dword [esp + 0x20], eax
jne 0x422afe
mov ebx, dword [esi + 0x108]
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
jmp 0x422b3a
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x34]
push 0x18
push eax
call ebp
mov ecx, dword [esi + 0x108]
mov edx, dword [esi + 0x6c]
mov ebx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
push ecx
mov dword [esp + 0x30], ebx
push edi
lea ebx, [esi + 0x30]
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], ebx
call fcn.00420eb0
mov ecx, dword [esi + 0x6c]
add edi, ecx
cmp dword [esp + 0x7c], 0
jne 0x422b6f
mov ebx, dword [esi + 0x108]
xor edx, edx
jmp 0x422ba3
mov ecx, dword [esi + 0x34]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x38]
push eax
push 0x18
push ecx
call ebp
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0x108]
mov ebx, dword [esp + 0x40]
mov eax, dword [esi + 0x70]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
test edx, edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
jl 0x422c00
sub eax, ecx
add edx, 1
mov dword [esp + 0x14], edx
sub eax, dword [esp + 0x18]
sub eax, dword [esp + 0x78]
add eax, edi
test eax, eax
jle 0x422bd9
sub dword [esp + 0x28], eax
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x1c]
push edx
push edi
push eax
lea ecx, [esp + 0x2c]
call fcn.00420eb0
mov eax, dword [esi + 0x70]
sub eax, dword [esi + 0x6c]
add edi, eax
sub dword [esp + 0x14], 1
jne 0x422bc7
mov edx, dword [esi + 0x34]
xor eax, eax
lea ecx, [esp + 0x38]
push ecx
push 0x18
push edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call ebp
mov edi, dword [esi + 0x70]
sub edi, dword [esp + 0x3c]
xor eax, eax
add edi, dword [esp + 0x18]
mov dword [esp + 0x38], eax
add edi, dword [esp + 0x78]
cmp dword [esp + 0x7c], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
jne 0x422c83
mov ecx, dword [esi + 0x34]
lea eax, [esp + 0x38]
push eax
push 0x18
push ecx
call ebp
mov edx, dword [esp + 0x3c]
mov eax, dword [esi + 0x70]
mov esi, dword [esi + 0x108]
xor ecx, ecx
add edx, 0xffffffff
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
jmp 0x422cd7
mov eax, dword [esi + 0x34]
lea edx, [esp + 0x38]
push edx
push 0x18
push eax
call ebp
mov edx, dword [esi + 0x34]
mov ebx, dword [esp + 0x40]
xor eax, eax
lea ecx, [esp + 0x50]
push ecx
push 0x18
push edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
call ebp
mov ecx, dword [esp + 0x54]
mov eax, dword [esi + 0x70]
mov esi, dword [esi + 0x108]
add ecx, 0xffffffff
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x74]
push eax
push edi
push ecx
lea ecx, [esp + 0x2c]
call fcn.00420eb0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5c
ret 0x10