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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [ecx + 0x18]
mov edi, edx
xor ebx, ebx
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov esi, dword [eax + 0x24]
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x1c], edx
mov ebp, esi
mov eax, ecx
mov dword [esp + 0x10], ecx
mul edi
cmp ecx, esi
cmovle ebp, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebp
je 0x423a80
mov eax, dword [esp + 0x1c]
xor ebx, ebx
cmp byte [eax + 0xc], 0
setne bl
shl ebx, 3
test ebx, ebx
mov dword [esp], ebx
jne 0x423cbd
cmp dword [esp + 0x10], 0
jle 0x423cbd
mov eax, dword [esp + 0x10]
mov ebx, edx
mov edx, dword [esp + 0x24]
mov dword [esp], esi
mov dword [esp + 0xc], esi
mov ecx, eax
sar ecx, 0x1f
imul edi, ecx
mov dword [esp + 0x28], ecx
add ebx, edi
sub edx, eax
mov dword [esp + 0x30], ebx
sbb ebx, ecx
mov ecx, esi
sar ecx, 0x1f
mov dword [esp + 0x14], ecx
nop word cs:[eax + eax]
mov dword [esp + 0x18], edx
mov dword [esp + 8], 0
push ecx
push esi
push ebx
push edx
mov edi, ecx
call fcn.004fb230
add esp, 0x10
mov ebp, eax
mov eax, dword [0x51d800]
xor edx, edx
mov ecx, esi
xor esi, esi
div dword [esp]
mov edx, ebp
cmp eax, ebp
mov ebp, dword [esp + 0x18]
je 0x423c89
mov esi, edx
lea eax, [edx + 1]
mov dword [esp + 4], ebx
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [eax + 0xcc]
add esp, 0x10
test eax, eax
mov edx, ebp
jne 0x423c10
mov ebp, dword [esp + 8]
mov ebx, dword [ebp + 0x14]
test byte [ebp + 0x1c], 4
je 0x423b46
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebp + 0x18]
jae 0x423b6a
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x423c10
mov ecx, dword [ebx + 0x94]
mov edi, edx
cmp ecx, dword [ebx + 0x98]
jbe 0x423b7b
mov ecx, ebp
call fcn.00445510
jmp 0x423b82
cmp dword [ebx + 0x60], 0
je 0x423b90
mov ecx, ebp
mov edi, edx
call fcn.0043b610
jmp 0x423b82
mov ecx, ebp
call fcn.00445900
mov edx, edi
test eax, eax
jne 0x423c10
mov ebp, dword [esp + 8]
mov ebx, dword [esp + 4]
push dword [esp + 0x28]
push dword [esp + 0x14]
push ebx
push edx
mov edi, edx
call fcn.004fb390
add esp, 0x10
imul esi, dword [esp + 0xc]
mov ecx, edi
add eax, dword [esp + 0x48]
sub ecx, esi
mov esi, ecx
add esi, dword [ebp + 4]
push dword [esp + 0x2c]
push eax
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 8]
cmp dword [esp + 0x4c], 0
mov eax, dword [eax + 8]
mov byte [eax], 0
jne 0x423c09
mov eax, edi
mov edx, edi
or eax, ebx
jne 0x423c0b
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x30]
mov ecx, eax
shr ecx, 0x18
and cl, 0x7f
mov byte [esi + 0x1c], cl
mov ecx, eax
shr ecx, 0x10
mov byte [esi + 0x1d], cl
mov byte [esi + 0x1e], ah
mov byte [esi + 0x1f], al
jmp 0x423c0b
mov edx, edi
xor eax, eax
nop dword [eax]
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x423c28
test byte [ecx + 0x1c], 0x20
mov dword [esp], eax
jne 0x423c3a
call fcn.00442220
jmp 0x423c76
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 4]
mov ebp, edx
mov esi, eax
jmp 0x423c89
mov ebx, dword [ecx + 0x14]
dec dword [ebx + 0x78]
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0x10], eax
mov dword [ebx + 0x88], ecx
mov edi, dword [ecx + 0x18]
mov esi, dword [ebx + 0x98]
mov ebx, dword [ebx + 0x3c]
dec edi
mov eax, edi
mul esi
sar esi, 0x1f
imul esi, edi
add edx, esi
mov esi, dword [ebx]
push dword [ecx + 4]
push edx
push eax
push ebx
call dword [esi + 0x48]
add esp, 0x10
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 4]
mov esi, dword [esp]
add ebp, ecx
mov dword [esp], esi
adc ebx, edi
test esi, esi
jne 0x423cbd
cmp ebp, dword [esp + 0x24]
mov esi, ecx
mov ecx, edi
mov edi, ebx
mov edx, ebp
sbb ebx, dword [esp + 0x30]
jge 0x423cbd
mov eax, dword [esp + 0x20]
mov ebx, edi
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x24]
mov dword [esp], eax
jmp 0x423ad0
mov eax, dword [esp]
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret