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

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
test esi, esi
je 0x40a116
mov ebx, dword [esi + 0x1c]
test ebx, ebx
je 0x40a116
mov eax, dword [esi + 0x20]
test eax, eax
je 0x40a116
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40a116
mov eax, dword [ebx + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x14], 0
cmp eax, 0
jl 0x40a0e0
jne 0x40a0e5
mov dword [ebx + 4], 0x71
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004083a0
mov dword [esi + 0x30], eax
mov dword [ebx + 0x20], 0
mov dword [esp], ebx
call fcn.0040c5e0
mov eax, dword [ebx + 0x24]
mov edx, dword [ebx + 0x44]
add eax, eax
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x3c]
mov word [eax + edx*2 - 2], 0
lea edx, [edx + edx - 2]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x7c]
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x6c], 0
lea edx, [eax + eax*2]
shl edx, 2
lea eax, [edx + 0x416820]
movzx ecx, word [edx + 0x416822]
movzx edx, word [edx + 0x416820]
mov dword [ebx + 0x70], 2
mov dword [ebx + 0x58], 2
mov dword [ebx + 0x78], ecx
mov dword [ebx + 0x84], edx
movzx edx, word [eax + 4]
movzx eax, word [eax + 6]
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x88], edx
mov dword [ebx + 0x74], eax
xor eax, eax
add esp, 0x14
pop ebx
pop esi
ret
neg eax
mov dword [ebx + 0x18], eax
cmp eax, 2
mov dword [ebx + 4], 0x2a
jne 0x40a014
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00408070
jmp 0x40a030
mov eax, 0xfffffffe
jmp 0x40a0d9
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
test eax, eax
je 0x40ae80
cmp edx, 0x38
jne 0x40ae80
cmp byte [eax], 0x31
jne 0x40ae80
test esi, esi
je 0x40ae40
mov eax, dword [esi + 0x20]
mov dword [esi + 0x18], 0
test eax, eax
je 0x40ae50
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40ae70
cmp edi, 0xffffffff
mov eax, 6
cmove edi, eax
test ecx, ecx
js 0x40ae30
cmp ecx, 0xf
mov edx, 1
jg 0x40ae22
lea eax, [ebp - 1]
cmp eax, 8
ja 0x40ae40
cmp ebx, 8
jne 0x40ae40
cmp ecx, 0xf
jg 0x40ae40
cmp ecx, 7
jle 0x40ae40
cmp edi, 9
jg 0x40ae40
mov eax, edi
shr eax, 0x1f
test al, al
jne 0x40ae40
cmp dword [esp + 0x18], 3
jg 0x40ae40
mov eax, dword [esp + 0x18]
shr eax, 0x1f
test al, al
jne 0x40ae40
cmp ecx, 8
mov eax, 9
cmove ecx, eax
mov dword [esp + 8], 0x16b8
mov dword [esp + 4], 1
mov eax, dword [esi + 0x28]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp], eax
call dword [esi + 0x20]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test eax, eax
mov ebx, eax
je 0x40aea5
mov dword [esi + 0x1c], eax
mov dword [eax + 0x18], edx
mov edx, 0xaaaaaaab
mov dword [eax + 0x28], ecx
mov dword [eax], esi
mov eax, 1
shl eax, cl
mov dword [ebx + 0x24], eax
lea ecx, [ebp + 7]
mov dword [esp + 0x1c], eax
sub eax, 1
mov dword [ebx + 0x2c], eax
mov eax, 1
shl eax, cl
mov dword [ebx + 0x48], ecx
mov ecx, eax
mov dword [ebx + 0x44], eax
lea eax, [ebp + 9]
sub ecx, 1
mul edx
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x4c], ecx
shr edx, 1
mov dword [ebx + 0x50], edx
mov dword [esp + 8], 2
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov dword [ebx + 0x30], eax
mov dword [esp + 8], 2
mov eax, dword [ebx + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov dword [ebx + 0x38], eax
mov dword [esp + 8], 2
mov eax, dword [ebx + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
lea ecx, [ebp + 6]
mov ebp, 1
shl ebp, cl
mov dword [ebx + 0x1694], ebp
mov dword [ebx + 0x3c], eax
mov dword [esp + 8], 4
mov dword [esp + 4], ebp
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov edx, dword [ebx + 0x1694]
lea ecx, [edx*4]
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebx + 0x30]
mov dword [ebx + 8], eax
test ecx, ecx
je 0x40ae87
mov ebp, dword [ebx + 0x38]
test ebp, ebp
je 0x40ae87
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x40ae87
test eax, eax
je 0x40ae87
mov ecx, edx
and ecx, 0xfffffffe
lea edx, [edx + edx*2]
add ecx, eax
add eax, edx
mov dword [ebx + 0x1690], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x169c], ecx
mov dword [ebx + 0x7c], edi
mov byte [ebx + 0x1d], 8
mov dword [ebx + 0x80], eax
mov dword [esp + 0x40], esi
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp 0x409fa0
sub ecx, 0x10
mov dl, 2
jmp 0x40ac5b
neg ecx
xor edx, edx
jmp 0x40ac5b
mov eax, 0xfffffffe
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x24]
mov dword [esi + 0x20], 0x408370
mov dword [esi + 0x28], 0
test eax, eax
jne 0x40ac3a
lea esi, [esi]
mov dword [esi + 0x24], 0x408390
jmp 0x40ac3a
mov eax, 0xfffffffa
jmp 0x40ae45
mov eax, dword [str.insufficient_memory]
mov dword [ebx + 4], 0x29a
mov dword [esi + 0x18], eax
mov dword [esp], esi
call fcn.0040aaf0
mov eax, 0xfffffffc
jmp 0x40ae45
mov eax, 0xfffffffc
jmp 0x40ae45