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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x549944]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], 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 esi, dword [esi + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x18]
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x20]
cmp edi, esi
mov eax, esi
cmovl eax, edi
mov dword [esp + 0x30], eax
mov eax, edi
cdq
mov ecx, eax
mov eax, edx
push eax
push ecx
push 0
push ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
call fcn.004e59d0
mov dword [esp + 0x28], edx
mov ecx, eax
mov dword [esp + 0x2c], ecx
cmp edi, esi
je 0x4239ef
mov eax, dword [esp + 0x14]
cmp byte [eax + 0xc], 0
je 0x4239ef
mov eax, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
mov edi, ecx
mov eax, esi
sub edi, dword [esp + 0x1c]
mov ecx, edx
cdq
sbb ecx, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0xc], ebx
cmp ecx, dword [esp + 0x28]
jg 0x423bcb
jl 0x423a2a
cmp edi, dword [esp + 0x2c]
jae 0x423bcb
push ebx
push edx
push eax
push ecx
push edi
mov dword [esp + 0x64], 0
call fcn.0050e990
mov dword [esp + 0x48], ebx
pop ebx
mov dword [esp + 0x40], ecx
lea ecx, [eax + 1]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x4c], edx
xor edx, edx
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
mov eax, dword [0x54b1cc]
div dword [esi + 0x20]
inc eax
cmp ecx, eax
je 0x423ba7
push 0
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push eax
mov eax, dword [eax + 0xc8]
call eax
mov ebx, eax
add esp, 0x10
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x423b4f
mov ecx, dword [esp + 0x50]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x423abe
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x423abe
cmp dword [edx + 0x60], ebx
je 0x423ab6
call fcn.004118e0
mov ebx, eax
mov dword [esp + 0xc], ebx
jmp 0x423af3
xor ebx, ebx
mov dword [esp + 0xc], ebx
jmp 0x423afb
mov ebx, dword [edx + 0x28]
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x423b53
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x423ae8
call fcn.00413410
mov ebx, eax
mov dword [esp + 0xc], ebx
jmp 0x423af3
call fcn.00413340
mov ebx, eax
mov dword [esp + 0xc], eax
test ebx, ebx
jne 0x423b4f
mov ecx, dword [esp + 0x50]
push dword [esp + 0x30]
mov esi, dword [ecx + 4]
push dword [esp + 0x1c]
add esi, dword [esp + 0x48]
push dword [esp + 0x24]
push dword [esp + 0x1c]
push edi
call fcn.0050ea70
add eax, dword [esp + 0x38]
push eax
push esi
call fcn.004e8950
mov eax, dword [esp + 0x5c]
add esp, 0xc
mov eax, dword [eax + 8]
mov byte [eax], 0
mov eax, edi
or eax, dword [esp + 0x10]
jne 0x423b4f
cmp dword [ebp + 0xc], eax
jne 0x423b4f
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x2c]
bswap eax
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x423bab
test byte [ecx + 0x1c], 0x20
je 0x423ba0
mov eax, dword [ecx + 0x14]
dec dword [eax + 0x78]
mov edx, dword [eax + 0x88]
mov dword [ecx + 0x10], edx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], ecx
push dword [ecx + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [ecx + 0x18]
mov edi, dword [esi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.004e59d0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x34]
add esp, 0x10
jmp 0x423bab
call fcn.0040d5a0
jmp 0x423bab
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x38]
add edi, eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
adc ecx, edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], ecx
test ebx, ebx
je 0x423a14
mov ecx, dword [esp + 0x54]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret