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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x559940]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 4]
push ebx
push esi
push edi
mov esi, dword [eax + 4]
mov ebx, edx
mov dword [esp + 0x20], ecx
mov eax, dword [esi]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x18]
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x20]
mov eax, dword [esi + 0x20]
mov ecx, eax
cmp edi, eax
mov dword [esp + 0x14], eax
mov eax, edi
cdq
cmovl ecx, edi
mov esi, edx
mov dword [esp + 0x34], ecx
push esi
push eax
push 0
push ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x48], esi
call fcn.004f4a20
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
cmp edi, dword [esp + 0x14]
je 0x426fe1
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0xc], 0
je 0x426fe1
mov eax, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
mov ebx, eax
mov ecx, edx
sub ebx, dword [esp + 0x1c]
mov dword [esp + 0x2c], ebx
sbb ecx, esi
xor edi, edi
mov dword [esp + 0x10], ecx
cmp ecx, edx
jg 0x4271c8
jl 0x427007
cmp ebx, eax
jae 0x4271c8
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
push ecx
push ebx
mov dword [esp + 0x58], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], edx
call fcn.00520320
xor edx, edx
lea esi, [eax + 1]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
mov eax, dword [0x55b1cc]
mov ecx, dword [ecx + 4]
div dword [ecx + 0x20]
inc eax
cmp esi, eax
je 0x4271a3
push 0
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x20]
push esi
push eax
mov eax, dword [eax + 0xc8]
call eax
mov edi, eax
add esp, 0x10
mov dword [esp + 0xc], edi
test edi, edi
jne 0x427147
mov esi, dword [esp + 0x48]
test byte [esi + 0x1c], 4
mov ecx, dword [esi + 0x14]
je 0x42709c
mov eax, dword [ecx + 0x18]
cmp eax, dword [esi + 0x18]
jb 0x42709c
cmp dword [ecx + 0x60], edi
je 0x427094
mov ecx, esi
call fcn.00414010
mov edi, eax
mov dword [esp + 0xc], edi
jmp 0x4270d3
xor edi, edi
mov dword [esp + 0xc], edi
jmp 0x4270db
mov edi, dword [ecx + 0x28]
mov dword [esp + 0xc], edi
test edi, edi
jne 0x42714b
mov eax, dword [ecx + 0x94]
cmp eax, dword [ecx + 0x98]
mov ecx, esi
jbe 0x4270c8
call fcn.00415cd0
mov edi, eax
mov dword [esp + 0xc], edi
jmp 0x4270d3
call fcn.00415c50
mov edi, eax
mov dword [esp + 0xc], eax
test edi, edi
jne 0x427147
mov esi, dword [esp + 0x48]
push dword [esp + 0x30]
push dword [esp + 0x2c]
push dword [esp + 0x18]
push ebx
call fcn.005204b0
push dword [esp + 0x34]
add eax, dword [esi + 4]
push dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
push dword [esp + 0x24]
mov dword [esp + 0x30], eax
push esi
push ebx
call fcn.005204b0
add eax, dword [esp + 0x40]
push eax
push dword [esp + 0x2c]
call fcn.004f79b0
mov eax, dword [esp + 0x54]
add esp, 0xc
mov eax, dword [eax + 8]
mov byte [eax], 0
mov eax, ebx
or eax, esi
jne 0x427147
cmp dword [ebp + 0xc], eax
jne 0x427147
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x2c]
bswap eax
mov dword [ecx + 0x1c], eax
mov esi, dword [esp + 0x48]
test esi, esi
je 0x4271a3
test byte [esi + 0x1c], 0x20
je 0x42719c
mov eax, dword [esi + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [esi + 0x10], ecx
mov edi, dword [eax + 0x3c]
mov dword [eax + 0x88], esi
push dword [esi + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [esi + 0x18]
mov ebx, dword [edi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.004f4a20
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov edi, dword [esp + 0x1c]
add esp, 0x10
mov ebx, dword [esp + 0x2c]
jmp 0x4271a3
mov ecx, esi
call fcn.0040f8d0
add ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
adc ecx, dword [esp + 0x30]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], ecx
test edi, edi
jne 0x4271c8
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
jmp 0x426ff5
mov ecx, dword [esp + 0x4c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret