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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x438004]
xor eax, esp
mov dword [esp + 0x138], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov edi, ecx
cmp edx, 1
je 0x402a70
cmp edx, 3
je 0x402a70
push str.test
push 4
push 0
push 7
jmp 0x402a7e
push str.test
push 0x400
push 0
push 0
mov ecx, dword [edi + 0x160]
lea ebx, [edi + 0x168]
push edx
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, eax
mov eax, ebx
mov dword [eax], ecx
mov dword [esp + 0xec], ecx
mov dword [esp + 0x130], 0xffffffff
mov dword [esp + 0x134], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0x12c], 0
mov dword [esp + 0x94], 0xffffffff
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x402b05
mov ecx, dword [esp + 0xec]
push 0
push 7
mov eax, dword [ecx]
call dword [eax + 0x10]
sub esp, 8
lea ecx, [esp + 0x50]
call fcn.00401ae0
mov eax, dword [esp + 0x100]
mov dword [eax], 0xbf800000
mov dword [eax + 4], 0xbf800000
mov dword [eax + 8], 0x3f000000
mov eax, dword [esp + 0x104]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x3f800000
mov eax, dword [0x43be40]
mov edx, eax
and edx, 0x80000003
jns 0x402b5b
dec edx
or edx, 0xfffffffc
inc edx
movzx ecx, byte [edx*4 + 0x4388db]
lea esi, [eax + 1]
movzx eax, byte [edx*4 + 0x4388d8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx*4 + 0x4388d9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx*4 + 0x4388da]
shl ecx, 8
mov edx, esi
or ecx, eax
mov eax, dword [esp + 0x128]
mov dword [eax], ecx
mov ecx, dword [esp + 0xfc]
mov eax, dword [esp + 0xf8]
inc ecx
cmp ecx, eax
mov dword [esp + 0xfc], ecx
cmovg eax, ecx
mov ecx, dword [esp + 0x48]
add ecx, dword [esp + 0x100]
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x54]
add dword [esp + 0x104], eax
mov eax, dword [esp + 0x58]
add dword [esp + 0x128], eax
mov eax, dword [esp + 0x60]
add dword [esp + 0x108], eax
mov eax, dword [esp + 0x64]
add dword [esp + 0x10c], eax
mov eax, dword [esp + 0x68]
add dword [esp + 0x110], eax
mov eax, dword [esp + 0x6c]
add dword [esp + 0x114], eax
mov eax, dword [esp + 0x70]
add dword [esp + 0x118], eax
mov eax, dword [esp + 0x74]
add dword [esp + 0x11c], eax
mov eax, dword [esp + 0x78]
add dword [esp + 0x120], eax
mov eax, dword [esp + 0x7c]
add dword [esp + 0x124], eax
mov dword [esp + 0x100], ecx
mov dword [ecx], 0x3f800000
mov dword [ecx + 4], 0xbf800000
mov dword [ecx + 8], 0x3f000000
mov eax, dword [esp + 0x104]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x3f800000
and edx, 0x80000003
jns 0x402c76
dec edx
or edx, 0xfffffffc
inc edx
movzx ecx, byte [edx*4 + 0x4388db]
movzx eax, byte [edx*4 + 0x4388d8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx*4 + 0x4388d9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx*4 + 0x4388da]
shl ecx, 8
lea edx, [esi + 1]
or ecx, eax
mov eax, dword [esp + 0x128]
mov dword [eax], ecx
mov ecx, dword [esp + 0xfc]
mov eax, dword [esp + 0xf8]
inc ecx
cmp ecx, eax
mov dword [esp + 0xfc], ecx
cmovg eax, ecx
mov ecx, dword [esp + 0x48]
add ecx, dword [esp + 0x100]
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x54]
add dword [esp + 0x104], eax
mov eax, dword [esp + 0x58]
add dword [esp + 0x128], eax
mov eax, dword [esp + 0x60]
add dword [esp + 0x108], eax
mov eax, dword [esp + 0x64]
add dword [esp + 0x10c], eax
mov eax, dword [esp + 0x68]
add dword [esp + 0x110], eax
mov eax, dword [esp + 0x6c]
add dword [esp + 0x114], eax
mov eax, dword [esp + 0x70]
add dword [esp + 0x118], eax
mov eax, dword [esp + 0x74]
add dword [esp + 0x11c], eax
mov eax, dword [esp + 0x78]
add dword [esp + 0x120], eax
mov eax, dword [esp + 0x7c]
add dword [esp + 0x124], eax
mov dword [esp + 0x100], ecx
mov dword [ecx], 0x3f800000
mov dword [ecx + 4], 0x3f800000
mov dword [ecx + 8], 0x3f000000
mov eax, dword [esp + 0x104]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x3f800000
and edx, 0x80000003
jns 0x402d8f
dec edx
or edx, 0xfffffffc
inc edx
movzx ecx, byte [edx*4 + 0x4388db]
movzx eax, byte [edx*4 + 0x4388d8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx*4 + 0x4388d9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx*4 + 0x4388da]
shl ecx, 8
lea edx, [esi + 2]
or ecx, eax
mov eax, dword [esp + 0x128]
mov dword [eax], ecx
mov ecx, dword [esp + 0xfc]
mov eax, dword [esp + 0xf8]
inc ecx
cmp ecx, eax
mov dword [esp + 0xfc], ecx
cmovg eax, ecx
mov ecx, dword [esp + 0x48]
add ecx, dword [esp + 0x100]
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x54]
add dword [esp + 0x104], eax
mov eax, dword [esp + 0x58]
add dword [esp + 0x128], eax
mov eax, dword [esp + 0x60]
add dword [esp + 0x108], eax
mov eax, dword [esp + 0x64]
add dword [esp + 0x10c], eax
mov eax, dword [esp + 0x68]
add dword [esp + 0x110], eax
mov eax, dword [esp + 0x6c]
add dword [esp + 0x114], eax
mov eax, dword [esp + 0x70]
add dword [esp + 0x118], eax
mov eax, dword [esp + 0x74]
add dword [esp + 0x11c], eax
mov eax, dword [esp + 0x78]
add dword [esp + 0x120], eax
mov eax, dword [esp + 0x7c]
add dword [esp + 0x124], eax
mov dword [esp + 0x100], ecx
mov dword [ecx], 0xbf800000
mov dword [ecx + 4], 0x3f800000
mov dword [ecx + 8], 0x3f000000
mov eax, dword [esp + 0x104]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x3f800000
and edx, 0x80000003
jns 0x402ea8
dec edx
or edx, 0xfffffffc
inc edx
movzx ecx, byte [edx*4 + 0x4388db]
lea eax, [esi + 3]
mov dword [0x43be40], eax
lea esi, [esp + 0x48]
movzx eax, byte [edx*4 + 0x4388d8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx*4 + 0x4388d9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx*4 + 0x4388da]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x128]
push esi
mov dword [eax], ecx
mov eax, dword [esp + 0x100]
mov edx, dword [esp + 0xfc]
inc eax
cmp eax, edx
mov ecx, dword [esp + 0xf0]
mov dword [esp + 0x100], eax
cmovg edx, eax
mov eax, dword [esp + 0x4c]
add dword [esp + 0x104], eax
mov eax, dword [esp + 0x58]
add dword [esp + 0x108], eax
mov eax, dword [esp + 0x5c]
add dword [esp + 0x12c], eax
mov eax, dword [esp + 0x64]
add dword [esp + 0x10c], eax
mov eax, dword [esp + 0x68]
add dword [esp + 0x110], eax
mov eax, dword [esp + 0x6c]
add dword [esp + 0x114], eax
mov eax, dword [esp + 0x70]
add dword [esp + 0x118], eax
mov eax, dword [esp + 0x74]
add dword [esp + 0x11c], eax
mov eax, dword [esp + 0x78]
add dword [esp + 0x120], eax
mov eax, dword [esp + 0x7c]
add dword [esp + 0x124], eax
mov eax, dword [esp + 0x80]
add dword [esp + 0x128], eax
mov dword [esp + 0xfc], edx
mov eax, dword [ecx]
push edx
call dword [eax + 0x24]
mov ecx, dword [esp + 0xec]
mov edx, esi
push edx
push dword [esp + 0xfc]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov eax, dword [esp + 0xf8]
add dword [esp + 0x12c], eax
inc dword [0x43be40]
mov edx, dword [esp + 0x44]
mov dword [esp + 0xf4], 0
cmp edx, 1
je 0x402fe6
cmp edx, 3
je 0x402fe6
push str.test
push 6
push 0
jmp 0x402fef
push str.test
push 0x40
push 0xffffffffffffffff
mov ecx, dword [edi + 0x160]
lea esi, [edi + 0x164]
push edx
mov eax, dword [ecx]
call dword [eax + 0x68]
mov ecx, eax
mov eax, esi
mov dword [eax], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x3c], 0
mov dword [esp + 0x28], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x403039
mov ecx, dword [esp + 0x20]
push 0
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x10]
cmp dword [esp + 0x38], 0xffffffff
mov byte [esp + 0x40], 0
mov dword [esp + 0x2c], 0
sete byte [esp + 0xf]
mov dword [esp + 0x24], 6
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov eax, dword [ecx]
push edx
push 0
push 6
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x40308a
mov dword [esp + 0x24], 0
jmp 0x4030a1
cmp byte [esp + 0xf], 0
je 0x4030a1
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
movzx eax, word [esp + 0x2c]
mov word [ecx + edx*2], ax
mov edx, dword [esp + 0x30]
movzx eax, byte [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
add edx, eax
mov eax, dword [esp + 0x10]
add ecx, 2
mov dword [esp + 0x30], edx
mov word [eax + edx*2], cx
mov edx, dword [esp + 0x30]
movzx eax, byte [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
add edx, eax
mov eax, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x30], edx
mov word [eax + edx*2], cx
mov edx, dword [esp + 0x30]
movzx eax, byte [esp + 0x1c]
mov ecx, dword [esp + 0x10]
add edx, eax
movzx eax, word [esp + 0x2c]
mov dword [esp + 0x30], edx
mov word [ecx + edx*2], ax
mov edx, dword [esp + 0x30]
movzx eax, byte [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
add edx, eax
mov eax, dword [esp + 0x10]
add ecx, 3
mov dword [esp + 0x30], edx
mov word [eax + edx*2], cx
mov edx, dword [esp + 0x30]
movzx eax, byte [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
add edx, eax
mov eax, dword [esp + 0x10]
add ecx, 2
mov dword [esp + 0x30], edx
mov word [eax + edx*2], cx
movzx eax, byte [esp + 0x1c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
add edx, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], edx
mov eax, dword [ecx]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x24]
push edx
call dword [eax + 0x2c]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
push dword [esp + 0x2c]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [edi + 0x15c]
mov eax, dword [esp + 0x28]
add dword [esp + 0x34], eax
push 1
push 0
push 7
push dword [esp + 0x138]
mov dword [esp + 0x34], 0
mov eax, dword [ecx]
push 0
push dword [esp + 0x144]
push dword [ebx]
push 0
call dword [eax + 0x38c]
mov ecx, dword [edi + 0x15c]
push dword [esp + 0x38]
push dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x390]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4031e4
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x4031e4
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esp + 0xec]
test ecx, ecx
je 0x403206
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x403206
mov ecx, dword [esp + 0xec]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040de3d
mov esp, ebp
pop ebp
ret 0xc