Function at 0x40a180
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43ce39
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x44e6f0]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44e6f0]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], ebx
mov esi, 1
mov dword [esp + 0xb4], esi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov ebp, dword [esp + 0xbc]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
mov dword [esp + 0x30], esi
jl 0x40a67f
push str.setargs
push ebp
call fcn.00427ab9
add esp, 8
cmp eax, ebx
je 0x40a67f
sub eax, ebp
js 0x40a67f
cmp eax, dword [ebp - 0xc]
jg 0x40a67f
add eax, ebp
push 0x444a54
push eax
call fcn.00427ab9
add esp, 8
cmp eax, ebx
je 0x40a67f
sub eax, ebp
cmp eax, ebx
jle 0x40a67f
mov ecx, dword [ebp - 0xc]
add eax, esi
sub ecx, eax
push ecx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xc4]
call fcn.00403610
mov byte [esp + 0xb4], 2
lea esp, [esp]
mov edi, dword [esp + 0x14]
cmp dword [edi - 0xc], ebx
jl 0x40a50d
push 0x444a58
push edi
call fcn.00427ab9
add esp, 8
cmp eax, ebx
je 0x40a50d
sub eax, edi
mov dword [esp + 0x24], eax
js 0x40a50d
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00403690
mov byte [esp + 0xb4], 3
mov edi, dword [esp + 0x18]
cmp dword [edi - 0xc], ebx
jl 0x40a4e0
push 0x444a54
push edi
call fcn.00427ab9
add esp, 8
cmp eax, ebx
je 0x40a4e0
sub eax, edi
mov esi, eax
cmp esi, ebx
jle 0x40a4e0
push esi
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x20]
call fcn.00403690
mov byte [esp + 0xb4], 4
mov edi, dword [eax]
mov eax, edi
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40a303
sub eax, ebp
push eax
push edi
lea ecx, [esp + 0x58]
call fcn.00405160
mov byte [esp + 0xb4], 6
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a341
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
sub eax, esi
sub eax, 1
push eax
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x20]
call fcn.00403610
mov byte [esp + 0xb4], 7
mov ecx, dword [eax]
mov eax, ecx
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
lea esi, [eax + 1]
jmp 0x40a380
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x40a380
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.00405160
mov byte [esp + 0xb4], 9
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a3be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, 0xf
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x78]
mov byte [esp + 0xc0], 0xb
call fcn.00404cb0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x94]
call fcn.00404cb0
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x6c]
push eax
call fcn.00404af0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
sub eax, dword [esp + 0x24]
lea edx, [esp + 0x20]
sub eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00403610
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xb8], 0xc
call fcn.00403c90
mov byte [esp + 0xb4], 0xb
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a47c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x6c]
push ecx
mov byte [esp + 0xb8], 9
call fcn.004048a0
mov esi, 0x10
mov byte [esp + 0xb4], 6
cmp dword [esp + 0x4c], esi
jb 0x40a4ae
mov edx, dword [esp + 0x38]
push edx
call fcn.0040b369
add esp, 4
mov byte [esp + 0xb4], 3
cmp dword [esp + 0x68], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
jb 0x40a4d5
mov eax, dword [esp + 0x54]
push eax
call fcn.0040b369
add esp, 4
mov ebp, dword [esp + 0xbc]
mov edi, dword [esp + 0x18]
lea eax, [edi - 0x10]
mov byte [esp + 0xb4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a260
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40a260
mov eax, dword [edi - 0xc]
cmp eax, ebx
je 0x40a657
jl 0x40a657
push 0x444a54
push edi
call fcn.00427ab9
add esp, 8
cmp eax, ebx
je 0x40a657
sub eax, edi
mov esi, eax
cmp esi, ebx
jle 0x40a657
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00403690
mov byte [esp + 0xb4], 0xd
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x38]
call fcn.00404930
mov byte [esp + 0xb4], 0xf
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a58b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi - 0xc]
sub eax, esi
sub eax, 1
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00403610
mov byte [esp + 0xb4], 0x10
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x54]
call fcn.00404930
mov byte [esp + 0xb4], 0x12
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a5de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.004090e0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x78]
mov byte [esp + 0xc0], 0x13
call fcn.00404cb0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x94]
call fcn.00404cb0
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x6c]
push ecx
call fcn.00404af0
lea edx, [esp + 0x6c]
push edx
mov byte [esp + 0xb8], 0x12
call fcn.004048a0
lea ecx, [esp + 0x50]
mov byte [esp + 0xb4], 0xf
call fcn.00404970
lea ecx, [esp + 0x34]
mov byte [esp + 0xb4], 2
call fcn.00404970
lea eax, [edi - 0x10]
mov byte [esp + 0xb4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a67b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x1c]
lea eax, [ebp - 0x10]
mov byte [esp + 0xb4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a6a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.004271b8
add esp, 0xa4
ret 4