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

Disassembly:
push 0xffffffffffffffff
push 0x40cdde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1e0
mov al, byte [esp + 3]
push ebx
push ebp
push esi
push edi
lea edi, [ecx + 4]
xor esi, esi
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edi
mov byte [edi], al
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
push 0x410100
push 0x4100f4
mov dword [ecx], 0x40e100
push 0x4100d8
push 0x80000002
lea ecx, [esp + 0xe4]
mov dword [esp + 0x208], esi
call fcn.00404d10
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x200], 1
call fcn.004021b0
push 0x20019
push esi
push 0x4100c0
push 0x80000002
lea ecx, [esp + 0x54]
call fcn.00405760
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x1f8], 2
cmp eax, esi
je 0x40188e
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], al
call fcn.00402160
lea ecx, [esp + 0xec]
push 0x104
push ecx
push esi
mov byte [esp + 0x204], 3
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4012a5
lea edx, [esp + 0x14]
push esi
push edx
lea ecx, [esp + 0x4c]
xor ebp, ebp
call fcn.00405a90
mov edx, dword [esp + 0x1c]
xor eax, eax
cmp edx, esi
mov byte [esp + 0x1f8], 4
sete al
test al, al
jne 0x401251
mov bl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x401125
mov eax, 0x40e0fc
push eax
lea ecx, [esp + 0x48]
call fcn.00405c70
test eax, eax
je 0x4011e5
push esi
lea ecx, [esp + 0x7c]
mov byte [esp + 0x7c], bl
call fcn.00402160
mov edi, 0x412ac0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x412ac0
lea ecx, [esp + 0x80]
call fcn.00402340
mov eax, dword [esp + 0x18]
mov byte [esp + 0x1f8], 5
cmp eax, esi
jne 0x40117b
mov eax, 0x40e0fc
lea ecx, [esp + 0x78]
push 0x100
push ecx
lea edx, [esp + 0x90]
push eax
push edx
lea ecx, [esp + 0x54]
call fcn.00405ca0
push 1
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1fc], 7
call fcn.00402160
mov eax, dword [esp + 0x8c]
cmp eax, esi
jne 0x4011ba
mov eax, 0x40e0fc
lea ecx, [esp + 0xec]
push ecx
push eax
call fcn.00406730
add esp, 8
test eax, eax
je 0x401225
push 1
lea ecx, [esp + 0x8c]
mov byte [esp + 0x1fc], 4
call fcn.00402160
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x1fc], 3
call fcn.00402160
inc ebp
lea edx, [esp + 0x14]
push ebp
push edx
lea ecx, [esp + 0x4c]
call fcn.00405a90
mov edx, dword [esp + 0x1c]
xor eax, eax
cmp edx, esi
mov byte [esp + 0x1f8], 4
sete al
test al, al
je 0x401118
jmp 0x401251
mov ecx, dword [0x40e0f8]
lea edx, [esp + 0x14]
push ecx
push esi
push edx
lea ecx, [esp + 0x40]
call fcn.00401e40
push 1
lea ecx, [esp + 0x8c]
mov byte [esp + 0x1fc], 4
call fcn.00402160
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x1fc], 3
call fcn.00402160
mov edx, dword [esp + 0x3c]
xor eax, eax
cmp edx, esi
sete al
test al, al
je 0x4012bd
lea ecx, [esp + 0xd4]
push 0x4100a8
push ecx
call fcn.00405160
add esp, 8
lea edx, [esp + 0xec]
lea eax, [esp + 0xd4]
push edx
push 0x410078
push eax
call fcn.00405160
add esp, 0xc
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x1fc], 2
call fcn.00402160
jmp 0x40188e
push esi
lea ecx, [esp + 0x18]
push esi
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x60], esi
call fcn.00405850
mov ecx, dword [esp + 0x1c]
xor edx, edx
cmp ecx, esi
mov byte [esp + 0x1f8], 8
sete dl
test dl, dl
jne 0x40184a
mov bl, 9
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0x6c], al
call fcn.00402160
mov edi, 0x4100c0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4100c0
lea ecx, [esp + 0x70]
call fcn.00402340
push 0x5c
push 1
lea ecx, [esp + 0x70]
mov byte [esp + 0x200], bl
call fcn.00401d70
mov ecx, dword [0x40e0f8]
lea edx, [esp + 0x14]
push ecx
push esi
push edx
lea ecx, [esp + 0x74]
call fcn.00402250
mov eax, dword [esp + 0x6c]
cmp eax, esi
jne 0x401355
mov eax, 0x40e0fc
push 0x20019
push esi
push eax
push 0x80000002
lea ecx, [esp + 0x88]
call fcn.00405760
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0xa4]
mov byte [esp + 0x1fc], 0xa
mov byte [esp + 0xa4], al
call fcn.00402160
mov edi, 0x412ac0
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0xa4]
push ebp
call fcn.00402520
test al, al
je 0x4013dc
mov edi, dword [esp + 0xa4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x412ac0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xa4]
call fcn.00402500
xor esi, esi
lea eax, [esp + 0xa0]
push 0x100
push eax
lea ecx, [esp + 0x2c]
push 0x41006c
push ecx
lea ecx, [esp + 0x88]
mov byte [esp + 0x208], 0xb
call fcn.00405ca0
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0x1fc], 0xd
call fcn.00402160
push 1
lea edx, [esp + 0x17]
push esi
push edx
lea ecx, [esp + 0x30]
xor ebp, ebp
mov byte [esp + 0x1f], 0x2c
call fcn.00402050
cmp eax, dword [0x40e0f8]
jne 0x401480
mov eax, dword [esp + 0x38]
cmp eax, esi
jne 0x40144a
mov eax, 0x40e0fc
mov ecx, dword [esp + 0x3c]
push ecx
push esi
push eax
lea ecx, [esp + 0x30]
call fcn.00402050
cmp eax, dword [0x40e0f8]
je 0x401521
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
cmp edx, eax
jne 0x401521
mov ebp, 1
jmp 0x401521
xor edi, edi
mov eax, dword [esp + 0x38]
cmp eax, esi
jne 0x40148f
mov eax, 0x40e0fc
mov ecx, dword [esp + 0x3c]
push ecx
push edi
push eax
lea ecx, [esp + 0x30]
call fcn.00402050
mov edi, eax
mov eax, dword [0x40e0f8]
cmp edi, eax
je 0x401521
cmp edi, esi
je 0x4014dd
mov eax, dword [esp + 0x2c]
lea esi, [edi - 1]
cmp eax, esi
jb 0x4014d3
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4014d3
lea ecx, [esp + 0x24]
call fcn.004020e0
mov edx, dword [esp + 0x28]
lea eax, [esi + edx]
jmp 0x4014d8
mov eax, 0x40e0fc
cmp byte [eax], 0x2c
jne 0x401512
mov eax, dword [esp + 0x3c]
lea esi, [edi + eax]
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x40151a
jb 0x401508
mov eax, dword [esp + 0x28]
test eax, eax
je 0x401508
lea ecx, [esp + 0x24]
call fcn.004020e0
mov ecx, dword [esp + 0x28]
lea eax, [esi + ecx]
jmp 0x40150d
mov eax, 0x40e0fc
cmp byte [eax], 0x2c
je 0x40151a
inc edi
xor esi, esi
jmp 0x401482
mov ebp, 1
xor esi, esi
cmp ebp, esi
jne 0x401573
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1fc], 0xa
call fcn.00402160
lea ecx, [esp + 0x78]
mov byte [esp + 0x1f8], bl
call fcn.00405830
push 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0x1fc], 8
call fcn.00402160
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x1fc], 3
call fcn.00402160
jmp 0x401816
mov dl, byte [esp + 0x13]
push esi
lea ecx, [esp + 0xb4]
mov byte [esp + 0xb4], dl
call fcn.00402160
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0xc4]
mov byte [esp + 0x1fc], 0xe
mov byte [esp + 0xc4], al
call fcn.00402160
mov ecx, dword [0x40e0f8]
lea edx, [esp + 0x14]
push ecx
push esi
push edx
lea ecx, [esp + 0xbc]
mov byte [esp + 0x204], 0xf
call fcn.00401e40
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x5c]
mov byte [esp + 0x5c], al
call fcn.00402160
mov edi, 0x412ac0
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x5c]
push ebp
call fcn.00402520
test al, al
je 0x401627
mov edi, dword [esp + 0x5c]
mov ecx, ebp
mov edx, ecx
mov esi, 0x412ac0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x60], ebp
xor esi, esi
mov byte [ebp + eax], 0
lea ecx, [esp + 0x58]
push 0x100
push ecx
lea edx, [esp + 0x90]
push 0x410060
push edx
lea ecx, [esp + 0x88]
mov byte [esp + 0x208], 0x10
call fcn.00405ca0
mov ecx, dword [0x40e0f8]
mov byte [esp + 0x1f8], 0x11
push ecx
push esi
push eax
lea ecx, [esp + 0xcc]
call fcn.00401e40
mov eax, dword [esp + 0x8c]
cmp eax, esi
je 0x401697
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40168e
cmp al, 0xff
je 0x40168e
dec al
mov byte [ecx], al
jmp 0x401697
push ecx
call fcn.00405ea0
add esp, 4
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x8c], esi
cmp eax, esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov byte [esp + 0x1f8], 0xf
je 0x4016d9
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4016d0
cmp al, 0xff
je 0x4016d0
dec al
mov byte [ecx], al
jmp 0x4016d9
push ecx
call fcn.00405ea0
add esp, 4
push esi
push 0x410050
lea ecx, [esp + 0x80]
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
call fcn.00405e10
mov ecx, dword [esp + 0x9c]
lea edx, [esp + 0xb0]
mov dword [esp + 0xd0], eax
push edx
mov eax, dword [ecx + 8]
push 1
push eax
call fcn.00402660
push 1
lea ecx, [esp + 0xc4]
mov byte [esp + 0x1fc], 0x12
call fcn.00402160
mov eax, dword [esp + 0xb4]
cmp eax, esi
je 0x401756
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40174d
cmp al, 0xff
je 0x40174d
dec al
mov byte [ecx], al
jmp 0x401756
push ecx
call fcn.00405ea0
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0xb4], esi
cmp eax, esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], esi
je 0x401790
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x401787
cmp al, 0xff
je 0x401787
dec al
mov byte [ecx], al
jmp 0x401790
push ecx
call fcn.00405ea0
add esp, 4
lea ecx, [esp + 0x78]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov byte [esp + 0x1f8], bl
call fcn.00405830
mov eax, dword [esp + 0x6c]
cmp eax, esi
je 0x4017d1
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4017c8
cmp al, 0xff
je 0x4017c8
dec al
mov byte [ecx], al
jmp 0x4017d1
push ecx
call fcn.00405ea0
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x6c], esi
cmp eax, esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov byte [esp + 0x1f8], 3
je 0x40180a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x401801
cmp al, 0xff
je 0x401801
dec al
mov byte [ecx], al
jmp 0x40180a
push ecx
call fcn.00405ea0
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x54]
push esi
inc eax
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x60], eax
call fcn.00405850
mov ecx, dword [esp + 0x1c]
xor edx, edx
cmp ecx, esi
mov byte [esp + 0x1f8], 8
sete dl
test dl, dl
je 0x4012ee
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x1fc], 3
call fcn.00402160
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x401882
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x401879
cmp al, 0xff
je 0x401879
dec al
mov byte [ecx], al
jmp 0x401882
push ecx
call fcn.00405ea0
add esp, 4
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x44]
mov byte [esp + 0x1f8], 1
call fcn.00405830
lea ecx, [esp + 0xd4]
mov byte [esp + 0x1f8], 0
call fcn.00404fe0
mov ecx, dword [esp + 0x1f0]
mov eax, dword [esp + 0x98]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1ec
ret