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

Disassembly:
sub esp, 0x4c
push ebx
mov ebx, ecx
mov dword [esp + 0x34], edx
push ebp
push esi
push edi
movzx esi, word [ebx + 0x42]
xor edi, edi
mov eax, esi
mov dword [esp + 0x18], ebx
and eax, 1
mov dword [esp + 0x28], edi
shl eax, 0x10
and esi, 0xfe00
add eax, esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x20]
mov ebp, dword [eax]
mov eax, dword [ebp + 0x60]
add ebp, 0x60
mov dword [esp + 0x24], ebp
cmp eax, dword [ebx + 0x44]
jae 0x42e6b8
lea edx, [esp + 0x28]
call fcn.0042df80
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x42e792
mov edx, dword [ebx + 0x48]
lea esi, [edi + 1]
mov eax, dword [ebx + 0x44]
lea edi, [ebp + 8]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
nop
mov ebx, dword [edi]
cmp eax, ebx
jbe 0x42e535
mov ecx, dword [esp + 0x18]
lea ebp, [esi + 3]
push 1
push ebp
push dword [esp + 0x6c]
call fcn.0042e2c0
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x42e520
mov ebx, dword [esp + 0x18]
or eax, 0xffffffff
cmp esi, 1
cmove eax, dword [esp + 0x14]
mov dword [edi], eax
cmp byte [ebx + 0x2b], cl
jne 0x42e3eb
mov eax, dword [ebx + 4]
push 9
push 1
push ebp
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
inc esi
add edi, 4
cmp esi, 5
jl 0x42e390
mov ebp, dword [esp + 0x24]
cmp dword [ebp], eax
jae 0x42e699
push 1
push 3
push dword [esp + 0x6c]
mov ecx, ebx
call fcn.0042e2c0
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x42e699
mov edx, dword [esp + 0x68]
mov esi, dword [ebp]
mov dword [esp + 0x3c], esi
test edx, edx
je 0x42e455
mov eax, dword [ebx + 8]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x14]
call eax
mov ecx, eax
add esp, 8
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x42e677
mov edi, dword [esp + 0x30]
push 0
push dword [esp + 0x20]
push 0
push edi
call fcn.004befc0
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x50], edx
lea edx, [esp + 0x54]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
mov ecx, eax
add esp, 8
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x42e677
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x50]
jg 0x42e4c0
jl 0x42e4a6
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x4c]
jae 0x42e4c0
mov eax, dword [ebx + 4]
lea edx, [esp + 0x4c]
push edx
push 5
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x28]
call eax
add esp, 0xc
nop dword [eax + eax]
mov ecx, dword [esp + 0x28]
or ebp, 0xffffffff
mov dword [esp + 0x2c], ebp
mov eax, dword [ecx]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 4]
sub eax, 1
mov dword [esp + 0x34], eax
js 0x42e575
lea eax, [eax + eax*4]
lea eax, [eax + 5]
lea esi, [ecx + eax*4]
nop word [eax + eax]
mov eax, dword [esi - 0xc]
mov ebx, dword [esi]
cmp eax, ebx
jge 0x42e555
mov ecx, dword [esi - 8]
mov ebp, dword [esi - 4]
lea edx, [ecx + eax*2]
movzx edi, word [edx]
mov ecx, dword [ebp + edi*4]
cmp ecx, dword [esp + 0x44]
ja 0x42e53e
inc eax
add edx, 2
mov dword [esi - 0xc], eax
cmp eax, ebx
jl 0x42e502
mov ebp, dword [esp + 0x2c]
jmp 0x42e555
cmp ecx, 5
jne 0x42e780
mov eax, ebx
xor edx, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x18]
jmp 0x42e3f3
mov ebp, dword [esp + 0x2c]
cmp ecx, ebp
jae 0x42e555
mov eax, edi
mov ebp, ecx
add eax, dword [esi + 4]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
sub esi, 0x14
dec eax
mov dword [esp + 0x34], eax
test eax, eax
jns 0x42e4f0
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x30]
mov dword [ecx], ebp
cmp ebp, 0xffffffff
je 0x42e610
mov ecx, dword [esp + 0x38]
cmp ecx, esi
jbe 0x42e4c0
cmp ecx, dword [esp + 0x14]
ja 0x42e4c0
cmp ebp, edi
ja 0x42e4c0
mov eax, dword [esp + 0x1c]
dec ecx
mov esi, dword [ebx + 8]
add eax, 0x18
mul ecx
mov edi, dword [esi]
add eax, 0x38
adc edx, 0
push edx
push eax
push dword [esp + 0x24]
mov eax, dword [edi + 8]
push dword [esp + 0x78]
push esi
call eax
mov ecx, eax
add esp, 0x14
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x42e677
mov esi, dword [ebx + 4]
lea eax, [ebp - 1]
mov ebp, dword [esp + 0x1c]
push ecx
push ebp
mov edi, dword [esi]
push ecx
push eax
call fcn.004befc0
push edx
push eax
mov eax, dword [edi + 0xc]
push ebp
push dword [esp + 0x78]
push esi
call eax
mov ecx, eax
add esp, 0x14
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x42e677
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x30]
jmp 0x42e4c0
mov eax, dword [ebx + 0x20]
mov ebp, dword [esp + 0x14]
mov eax, dword [eax]
cmp ebp, dword [eax + 0x10]
jne 0x42e66d
push 0
push dword [esp + 0x20]
push 0
push dword [ebx + 0x48]
call fcn.004befc0
mov ecx, dword [ebx + 4]
mov esi, eax
push edx
push esi
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x42e677
mov edx, dword [esp + 0x68]
test edx, edx
je 0x42e671
mov eax, dword [ebx + 4]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x14]
call eax
mov ecx, eax
add esp, 8
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x42e677
jmp 0x42e671
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov dword [eax], ebp
cmp byte [ebx + 0x2b], 0
jne 0x42e695
mov eax, dword [ebx + 4]
push 9
push 1
push 3
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov ebp, dword [esp + 0x24]
cmp ecx, 5
jne 0x42e6a6
mov esi, dword [esp + 0x20]
xor edi, edi
jmp 0x42e6bc
mov edi, dword [esp + 0x10]
test ecx, ecx
jne 0x42e784
mov esi, dword [esp + 0x20]
jmp 0x42e6bc
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x42e784
mov eax, dword [ebp]
cmp eax, dword [ebx + 0x44]
jae 0x42e6da
mov edi, 5
jmp 0x42e784
cmp ecx, 2
jl 0x42e784
lea eax, [esp + 0x48]
push eax
push 4
call fcn.00421800
push 4
push 4
push dword [esp + 0x74]
mov edx, esi
mov ecx, ebx
call fcn.0042e2c0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x42e784
cmp dword [esp + 0x40], 3
jne 0x42e764
mov eax, dword [ebx + 0x20]
mov ecx, ebx
mov esi, dword [eax]
inc dword [ebx + 0x6c]
mov dword [ebx + 0x44], edi
mov eax, dword [ebx + 0x54]
bswap eax
inc eax
bswap eax
mov dword [ebx + 0x54], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x58], eax
call fcn.0042d800
mov dword [esi + 0x60], edi
mov eax, 3
mov dword [esi + 0x68], edi
add esi, 0x6c
mov dword [esi], 0xffffffff
lea esi, [esi + 4]
sub eax, 1
jne 0x42e742
mov eax, dword [ebx + 8]
push 0
push 0
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
call eax
add esp, 0xc
mov edi, eax
cmp byte [ebx + 0x2b], 0
jne 0x42e784
mov eax, dword [ebx + 4]
push 9
push 4
push 4
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
jmp 0x42e784
mov edi, dword [esp + 0x10]
push dword [esp + 0x28]
call fcn.0041f4b0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret