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

Disassembly:
mov eax, dword [esp + 0x1c]
push ebp
mov ebp, 1
test eax, eax
je 0x42b711
cmp byte [eax], 0x31
jne 0x42b711
cmp dword [esp + 0x24], 0x38
jne 0x42b711
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x42b708
cmp dword [esi + 0x20], 0
mov dword [esi + 0x18], 0
jne 0x42b34f
mov dword [esi + 0x20], 0x42d170
mov dword [esi + 0x28], 0
cmp dword [esi + 0x24], 0
jne 0x42b35c
mov dword [esi + 0x24], 0x42d190
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 0x42b37d
xor ebp, ebp
neg ebx
jmp 0x42b38a
cmp ebx, 0xf
jle 0x42b38a
mov ebp, 2
sub ebx, 0x10
mov eax, dword [esp + 0x20]
dec eax
cmp eax, 8
ja 0x42b708
cmp dword [esp + 0x18], 8
jne 0x42b708
lea eax, [ebx - 8]
cmp eax, 7
ja 0x42b708
cmp ecx, 9
ja 0x42b708
cmp dword [esp + 0x24], 4
ja 0x42b708
cmp ebx, 8
mov eax, 9
push edi
cmove ebx, eax
mov eax, dword [esi + 0x20]
push 0x16c0
cmp eax, 0x42d170
jne 0x42b3e8
call fcn.00517259
add esp, 4
jmp 0x42b3f2
push 1
push dword [esi + 0x28]
call eax
add esp, 0xc
mov edi, eax
test edi, edi
je 0x42b6fe
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, 0x42d170
jne 0x42b463
lea eax, [ebp*2]
push eax
call fcn.00517259
add esp, 4
jmp 0x42b46e
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, 0x42d170
jne 0x42b48c
add eax, eax
push eax
call fcn.00517259
add esp, 4
jmp 0x42b497
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, 0x42d170
jne 0x42b4b5
add eax, eax
push eax
call fcn.00517259
add esp, 4
jmp 0x42b4c0
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, 0x42d170
jne 0x42b4ec
shl eax, 2
push eax
call fcn.00517259
add esp, 4
jmp 0x42b4f7
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 0x42b6e7
cmp dword [edi + 0x40], 0
je 0x42b6e7
cmp dword [edi + 0x44], 0
je 0x42b6e7
test ecx, ecx
je 0x42b6e7
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 0x42b6dd
cmp dword [esi + 0x20], 0
je 0x42b6dd
cmp dword [esi + 0x24], 0
je 0x42b6dd
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 0x42b5b6
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], 0x582010
mov dword [edi + 0xb2c], 0x582024
mov dword [edi + 0xb38], 0x582038
mov word [edi + 0x16b8], ax
mov dword [edi + 0x16bc], eax
mov dword [edi + 0x16b4], 8
call fcn.0041e500
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.00514400
mov eax, dword [edi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x54ec1a]
mov dword [edi + 0x80], eax
movzx eax, word [ecx*4 + 0x54ec18]
mov dword [edi + 0x8c], eax
movzx eax, word [ecx*4 + 0x54ec1c]
mov dword [edi + 0x90], eax
movzx eax, word [ecx*4 + 0x54ec1e]
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.0042b230
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