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

Disassembly:
mov eax, dword [esp + 0x1c]
push ebp
mov ebp, 1
test eax, eax
je 0x42bdd1
cmp byte [eax], 0x31
jne 0x42bdd1
cmp dword [esp + 0x24], 0x38
jne 0x42bdd1
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x42bdc8
cmp dword [esi + 0x20], 0
mov dword [esi + 0x18], 0
jne 0x42ba0f
mov dword [esi + 0x20], 0x42d830
mov dword [esi + 0x28], 0
cmp dword [esi + 0x24], 0
jne 0x42ba1c
mov dword [esi + 0x24], 0x42d850
cmp dword [esp + 0x14], 0xffffffff
mov ecx, 6
mov ebx, dword [esp + 0x1c]
cmovne ecx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
test ebx, ebx
jns 0x42ba3d
xor ebp, ebp
neg ebx
jmp 0x42ba4a
cmp ebx, 0xf
jle 0x42ba4a
mov ebp, 2
sub ebx, 0x10
mov eax, dword [esp + 0x20]
dec eax
cmp eax, 8
ja 0x42bdc8
cmp dword [esp + 0x18], 8
jne 0x42bdc8
lea eax, [ebx - 8]
cmp eax, 7
ja 0x42bdc8
cmp ecx, 9
ja 0x42bdc8
cmp dword [esp + 0x24], 4
ja 0x42bdc8
cmp ebx, 8
mov eax, 9
push edi
cmove ebx, eax
mov eax, dword [esi + 0x20]
push 0x16c0
cmp eax, 0x42d830
jne 0x42baa8
call fcn.0051821c
add esp, 4
jmp 0x42bab2
push 1
push dword [esi + 0x28]
call eax
add esp, 0xc
mov edi, eax
test edi, edi
je 0x42bdbe
mov dword [esi + 0x1c], edi
mov ecx, ebx
mov dword [edi + 0x18], ebp
mov ebp, 1
shl ebp, cl
mov dword [edi + 0x30], ebx
mov ebx, dword [esp + 0x24]
mov dword [edi], esi
lea eax, [ebp - 1]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x34], eax
mov eax, 1
lea ecx, [ebx + 7]
mov dword [edi + 0x2c], ebp
shl eax, cl
mov dword [edi + 0x4c], eax
dec eax
mov dword [edi + 0x54], eax
mov eax, 0xaaaaaaab
mov dword [edi + 0x50], ecx
add ecx, 2
mul ecx
shr edx, 1
mov dword [edi + 0x58], edx
mov eax, dword [esi + 0x20]
cmp eax, 0x42d830
jne 0x42bb23
lea eax, [ebp*2]
push eax
call fcn.0051821c
add esp, 4
jmp 0x42bb2e
push 2
push ebp
push dword [esi + 0x28]
call eax
add esp, 0xc
mov dword [edi + 0x38], eax
mov ecx, dword [esi + 0x20]
mov eax, dword [edi + 0x2c]
cmp ecx, 0x42d830
jne 0x42bb4c
add eax, eax
push eax
call fcn.0051821c
add esp, 4
jmp 0x42bb57
push 2
push eax
push dword [esi + 0x28]
call ecx
add esp, 0xc
mov dword [edi + 0x40], eax
mov ecx, dword [esi + 0x20]
mov eax, dword [edi + 0x4c]
cmp ecx, 0x42d830
jne 0x42bb75
add eax, eax
push eax
call fcn.0051821c
add esp, 4
jmp 0x42bb80
push 2
push eax
push dword [esi + 0x28]
call ecx
add esp, 0xc
mov dword [edi + 0x44], eax
lea ecx, [ebx + 6]
mov eax, 1
shl eax, cl
mov dword [edi + 0x169c], eax
mov ecx, dword [esi + 0x20]
cmp ecx, 0x42d830
jne 0x42bbac
shl eax, 2
push eax
call fcn.0051821c
add esp, 4
jmp 0x42bbb7
push 4
push eax
push dword [esi + 0x28]
call ecx
add esp, 0xc
cmp dword [edi + 0x38], 0
mov ecx, eax
mov edx, dword [edi + 0x169c]
mov dword [edi + 8], ecx
lea eax, [edx*4]
mov dword [edi + 0xc], eax
je 0x42bda7
cmp dword [edi + 0x40], 0
je 0x42bda7
cmp dword [edi + 0x44], 0
je 0x42bda7
test ecx, ecx
je 0x42bda7
mov eax, edx
mov byte [edi + 0x24], 8
shr eax, 1
lea eax, [ecx + eax*2]
mov dword [edi + 0x16a4], eax
lea eax, [ecx + edx*2]
add eax, edx
mov dword [edi + 0x1698], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x84], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x88], eax
mov edi, dword [esi + 0x1c]
test edi, edi
je 0x42bd9d
cmp dword [esi + 0x20], 0
je 0x42bd9d
cmp dword [esi + 0x24], 0
je 0x42bd9d
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x42bc76
neg ecx
mov dword [edi + 0x18], ecx
test ecx, ecx
mov edx, 0x2a
mov eax, 0x71
cmovne eax, edx
mov dword [edi + 4], eax
xor eax, eax
cmp ecx, 2
push edi
setne al
mov dword [esi + 0x30], eax
lea eax, [edi + 0x94]
mov dword [edi + 0xb18], eax
lea eax, [edi + 0x988]
mov dword [edi + 0xb24], eax
lea eax, [edi + 0xa7c]
mov dword [edi + 0xb30], eax
xor eax, eax
mov dword [edi + 0x28], 0
mov dword [edi + 0xb20], 0x583018
mov dword [edi + 0xb2c], 0x58302c
mov dword [edi + 0xb38], 0x583040
mov word [edi + 0x16b8], ax
mov dword [edi + 0x16bc], eax
mov dword [edi + 0x16b4], 8
call fcn.0041ecc0
mov eax, dword [edi + 0x2c]
xor edx, edx
mov ecx, dword [edi + 0x4c]
add eax, eax
mov dword [edi + 0x3c], eax
mov eax, dword [edi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [edi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [edi + 0x44]
call fcn.005153c0
mov eax, dword [edi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x54fdf2]
mov dword [edi + 0x80], eax
movzx eax, word [ecx*4 + 0x54fdf0]
mov dword [edi + 0x8c], eax
movzx eax, word [ecx*4 + 0x54fdf4]
mov dword [edi + 0x90], eax
movzx eax, word [ecx*4 + 0x54fdf6]
mov dword [edi + 0x7c], eax
xor eax, eax
mov dword [edi + 0x6c], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 2
mov dword [edi + 0x60], 2
mov dword [edi + 0x68], 0
mov dword [edi + 0x48], 0
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
pop ebx
mov eax, 0xfffffffe
pop ebp
ret
mov dword [edi + 4], 0x29a
push esi
mov dword [esi + 0x18], str.insufficient_memory
call fcn.0042b8f0
add esp, 4
pop edi
pop esi
pop ebx
mov eax, 0xfffffffc
pop ebp
ret
pop esi
pop ebx
mov eax, 0xfffffffe
pop ebp
ret
mov eax, 0xfffffffa
pop ebp
ret