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

Disassembly:
push 0xffffffffffffffff
push 0x421a7a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6b4
push ebx
push ebp
push esi
lea eax, [esp + 0x4c]
push edi
xor ebp, ebp
push eax
mov dword [esp + 0x2c], ebp
call 0x402100
add esp, 4
mov eax, dword [esp + 0x58]
mov dword [esp + 0x6cc], ebp
cmp eax, ebp
je 0x401baa
mov cl, byte [esp + 0x13]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x14], cl
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov esi, dword [esp + 0x54]
mov byte [esp + 0x6cc], 1
cmp esi, ebp
jne 0x4010ce
mov esi, 0x423170
lea ecx, [esp + 0x100]
mov dword [esp + 0xa0], 0x423168
mov dword [esp + 0xa8], 0x423160
call 0x404ca0
mov dword [esp + 0x28], 1
lea edx, [esp + 0xac]
push ebp
push edx
lea ecx, [esp + 0xa8]
mov byte [esp + 0x6d4], 2
call 0x4053a0
push ebp
lea ecx, [esp + 0xb0]
mov dword [esp + 0x6d0], 3
call 0x405480
mov eax, dword [esp + 0xa0]
push 1
push esi
mov byte [esp + 0x6d4], 4
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0xa8], 0x42315c
lea ecx, [esp + 0xb4]
call 0x405610
test eax, eax
jne 0x401176
mov edx, dword [esp + 0xa0]
push ebp
push 2
mov eax, dword [edx + 4]
lea ecx, [esp + eax + 0xa8]
call 0x403390
mov edx, dword [esp + 0xa0]
mov byte [esp + 0x6cc], 5
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0xa4]
test al, 6
setne al
test al, al
mov byte [esp + 0x2d], al
jne 0x4012cf
mov byte [esp + 0x2dc], al
mov ecx, 0xf9
xor eax, eax
lea edi, [esp + 0x2dd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [edx + 4]
mov esi, 0xa
test byte [esp + eax + 0xa4], 1
jne 0x401292
mov bl, byte [esp + 0x13]
cmp esi, ebp
jle 0x401292
push 0xa
lea ecx, [esp + eax + 0xa4]
dec esi
call 0x404870
push eax
lea edx, [esp + 0x2e0]
push 0x3e7
push edx
lea ecx, [esp + 0xac]
call 0x404d20
lea eax, [esp + 0x2dc]
test eax, eax
je 0x40127a
mov al, byte [esp + 0x2dc]
test al, al
je 0x40127a
push ebp
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], bl
call 0x404820
lea edi, [esp + 0x2dc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x2e0]
push ecx
lea ecx, [esp + 0x3c]
call 0x406020
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x34]
push edx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6d4], 6
call 0x4051c0
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x6d0], 5
call 0x404820
mov ecx, dword [esp + 0xa0]
mov eax, dword [ecx + 4]
test byte [esp + eax + 0xa4], 1
je 0x4011d4
lea ecx, [esp + 0xac]
call 0x4056e0
test eax, eax
jne 0x4012bb
mov edx, dword [esp + 0xa0]
push ebp
push 2
mov eax, dword [edx + 4]
lea ecx, [esp + eax + 0xa8]
call 0x403390
mov eax, dword [esp + 0x54]
cmp eax, ebp
jne 0x4012c8
mov eax, 0x423170
push eax
call dword [0x423008]
lea ecx, [esp + 0x4a]
lea edx, [esp + 0x2e]
push ecx
push ebp
push edx
lea ecx, [esp + 0x6c]
call 0x405880
push 0x4231fc
push 0x1400
mov byte [esp + 0x6d4], 7
mov dword [esp + 0x4c], 0x1400
call 0x408afb
add esp, 8
mov esi, eax
lea eax, [esp + 0x44]
push eax
push esi
push 0x42807c
mov dword [esi], 0x50
call dword [0x423148]
cmp eax, ebp
mov dword [esp + 0x30], eax
jne 0x40153e
push esi
call 0x408af0
add esp, 4
call dword [0x42301c]
cmp eax, 0x103
jne 0x4014d4
mov esi, dword [esp + 0x54]
cmp esi, ebp
jne 0x401351
mov esi, 0x423170
lea ecx, [esp + 0x228]
mov dword [esp + 0x1c8], 0x423168
mov dword [esp + 0x1d0], 0x423160
call 0x404ca0
mov dword [esp + 0x28], 3
lea ecx, [esp + 0x1d4]
push ebp
push ecx
lea ecx, [esp + 0x1d0]
mov byte [esp + 0x6d4], 8
call 0x4053a0
push ebp
lea ecx, [esp + 0x1d8]
mov dword [esp + 0x6d0], 9
call 0x405480
mov edx, dword [esp + 0x1c8]
push 0x12
push esi
lea ecx, [esp + 0x1dc]
mov eax, dword [edx + 4]
mov byte [esp + 0x6d4], 0xa
mov dword [esp + eax + 0x1d0], 0x42315c
call 0x405610
test eax, eax
jne 0x4013f9
mov ecx, dword [esp + 0x1c8]
push ebp
push 2
mov edx, dword [ecx + 4]
lea ecx, [esp + edx + 0x1d0]
call 0x403390
mov eax, dword [esp + 0x1c8]
mov byte [esp + 0x6cc], 0xb
mov ecx, dword [eax + 4]
test byte [esp + ecx + 0x1cc], 6
je 0x40148b
lea ecx, [esp + 0x228]
mov byte [esp + 0x6cc], 7
call 0x403440
lea ecx, [esp + 0x228]
call 0x403380
lea ecx, [esp + 0x60]
mov byte [esp + 0x6cc], 5
call 0x404150
lea ecx, [esp + 0x100]
mov byte [esp + 0x6cc], 1
call 0x403440
lea ecx, [esp + 0x100]
call 0x403380
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6d4], 0
call 0x405350
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x401525
lea ecx, [esp + 0x1d4]
call 0x4056e0
test eax, eax
jne 0x4014b4
mov edx, dword [esp + 0x1c8]
push ebp
push 2
mov eax, dword [edx + 4]
lea ecx, [esp + eax + 0x1d0]
call 0x403390
lea ecx, [esp + 0x228]
mov byte [esp + 0x6cc], 7
call 0x403440
lea ecx, [esp + 0x228]
call 0x403380
lea ecx, [esp + 0x60]
mov byte [esp + 0x6cc], 5
call 0x404150
lea ecx, [esp + 0x100]
mov byte [esp + 0x6cc], 1
call 0x403440
lea ecx, [esp + 0x100]
call 0x403380
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6d4], 0
call 0x405350
mov eax, dword [esp + 0x18]
push eax
call 0x408af0
add esp, 4
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
jmp 0x401baa
lea ecx, [esp + 0x90]
mov dword [esp + 0x28], 1
push ecx
call 0x4024f0
lea edx, [esp + 0x94]
lea eax, [esp + 0x74]
push edx
push 0x428074
push eax
mov byte [esp + 0x6dc], 0xc
call 0x407a10
push 0x428070
lea ecx, [esp + 0x94]
mov bl, 0xd
push eax
push ecx
mov byte [esp + 0x6e8], bl
call 0x407b60
add esp, 0x1c
mov edx, dword [0x423158]
lea ecx, [esp + 0x90]
push edx
push ebp
push eax
mov byte [esp + 0x6d8], 0xe
call 0x404510
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x6d0], bl
call 0x404820
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x6d0], 0xc
call 0x404820
mov ebx, dword [esp + 0x98]
mov al, byte [esp + 0x2d]
mov ebp, dword [esi + 4]
test al, al
je 0x4016bd
mov al, byte [esp + 0x2e]
push 0
lea ecx, [esp + 0x74]
mov byte [esp + 0x74], al
call 0x404820
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x78]
call 0x406020
lea ecx, [esp + 0x27]
mov byte [esp + 0x6cc], 0xf
push ecx
lea ecx, [esp + 0x280]
call 0x402fc0
lea edx, [esp + 0x70]
push eax
push edx
lea ecx, [esp + 0x2c4]
mov byte [esp + 0x6d4], 0x10
call 0x405900
push eax
lea eax, [esp + 0x270]
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x6d4], 0x11
call 0x405780
mov edi, dword [eax]
lea ecx, [esp + 0x2bc]
mov byte [esp + 0x6cc], 0x10
call 0x4043f0
push 1
lea ecx, [esp + 0x280]
mov byte [esp + 0x6d0], 0xf
call 0x404820
mov edx, dword [esi + 8]
lea ebp, [edi + 0x1c]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, ebp
call 0x406020
mov byte [esp + 0x6cc], 0xc
push 1
lea ecx, [esp + 0x74]
jmp 0x4018ce
mov cl, byte [esp + 0x27]
push 0
mov byte [esp + 0x38], cl
lea ecx, [esp + 0x38]
call 0x404820
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x3c]
call 0x406020
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x6cc], 0x12
cmp eax, ebx
jb 0x401733
mov ecx, dword [esp + 0x94]
test ecx, ecx
jne 0x401707
mov ecx, 0x423170
mov eax, dword [esi + 4]
push ebx
push eax
push ecx
call 0x4151d0
add esp, 0xc
test eax, eax
jne 0x401733
push 1
lea edx, [esp + 0x17]
push eax
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x1f], 0x2f
call 0x404710
cmp eax, ebx
jae 0x40174b
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x6d0], 0xc
call 0x404820
jmp 0x4018f0
sub eax, ebx
lea ecx, [esp + 0x34]
push eax
lea eax, [esp + 0x290]
push ebx
push eax
call 0x403020
mov ecx, dword [0x423158]
mov byte [esp + 0x6cc], 0x13
push ecx
push 0
push eax
lea ecx, [esp + 0x40]
call 0x404510
push 1
lea ecx, [esp + 0x290]
mov byte [esp + 0x6d0], 0x12
call 0x404820
sub esp, 0x14
lea eax, [esp + 0x48]
mov edx, esp
mov dword [esp + 0x3c], esp
lea ecx, [esp + 0x43]
push eax
push ecx
push edx
call 0x407c90
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x6e0], 0x12
call 0x403430
push eax
lea ecx, [esp + 0x2c]
call 0x403420
push eax
call 0x407d60
mov ecx, dword [esp + 0x38]
add esp, 0x1c
cmp eax, ecx
je 0x4018c0
mov dl, byte [esp + 0x2f]
mov ebp, dword [esi + 4]
push 0
lea ecx, [esp + 0x84]
mov byte [esp + 0x84], dl
call 0x404820
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x88]
call 0x406020
lea eax, [esp + 0x4b]
lea ecx, [esp + 0x25c]
push eax
mov byte [esp + 0x6d0], 0x15
call 0x402fc0
lea ecx, [esp + 0x80]
push eax
push ecx
lea ecx, [esp + 0x2a4]
mov byte [esp + 0x6d4], 0x16
call 0x405900
lea edx, [esp + 0x274]
push eax
push edx
lea ecx, [esp + 0x68]
mov byte [esp + 0x6d4], 0x17
call 0x405780
mov edi, dword [eax]
lea ecx, [esp + 0x29c]
mov byte [esp + 0x6cc], 0x16
call 0x4043f0
push 1
lea ecx, [esp + 0x260]
mov byte [esp + 0x6d0], 0x15
call 0x404820
mov edx, dword [esi + 8]
lea ebp, [edi + 0x1c]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, ebp
call 0x406020
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x6d0], 0x12
call 0x404820
mov byte [esp + 0x6cc], 0xc
push 1
lea ecx, [esp + 0x38]
call 0x404820
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x44]
push eax
push esi
push ecx
mov dword [esp + 0x50], 0x1400
call dword [0x423134]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4015dd
push esi
call 0x408af0
mov edx, dword [esp + 0x34]
add esp, 4
push edx
call dword [0x423144]
mov esi, dword [esp + 0x54]
xor edi, edi
cmp esi, edi
jne 0x40191f
mov esi, 0x423170
lea ecx, [esp + 0x194]
mov dword [esp + 0x134], 0x423168
mov dword [esp + 0x13c], 0x423160
call 0x404ca0
mov dword [esp + 0x28], 5
lea eax, [esp + 0x140]
push edi
push eax
lea ecx, [esp + 0x13c]
mov byte [esp + 0x6d4], 0x18
call 0x4053a0
push edi
lea ecx, [esp + 0x144]
mov dword [esp + 0x6d0], 0x19
call 0x405480
mov ecx, dword [esp + 0x134]
push 0x12
push esi
mov byte [esp + 0x6d4], 0x1a
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x148]
mov dword [esp + edx + 0x13c], 0x42315c
call 0x405610
test eax, eax
jne 0x4019c7
mov eax, dword [esp + 0x134]
push edi
push 2
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0x13c]
call 0x403390
mov edx, dword [esp + 0x134]
mov byte [esp + 0x6cc], 0x1b
mov eax, dword [edx + 4]
test byte [esp + eax + 0x138], 6
je 0x401a73
lea ecx, [esp + 0x194]
mov byte [esp + 0x6cc], 0xc
call 0x403440
lea ecx, [esp + 0x194]
call 0x403380
push 1
lea ecx, [esp + 0x94]
mov byte [esp + 0x6d0], 7
call 0x404820
lea ecx, [esp + 0x60]
mov byte [esp + 0x6cc], 5
call 0x404150
lea ecx, [esp + 0x100]
mov byte [esp + 0x6cc], 1
call 0x403440
lea ecx, [esp + 0x100]
call 0x403380
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6d4], 0
call 0x405350
mov eax, dword [esp + 0x18]
push eax
jmp 0x401b96
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], edi
push ecx
lea ecx, [esp + 0x64]
call 0x405c70
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x64]
cmp ecx, eax
mov dword [esp + 0x4c], ecx
je 0x401ae6
mov ecx, dword [ecx + 0x20]
lea eax, [esp + 0x134]
neg eax
sbb eax, eax
lea edx, [esp + 0x13c]
and eax, edx
cmp ecx, edi
jne 0x401ab5
mov ecx, 0x423170
push ecx
push eax
call 0x407e10
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call 0x4031b0
mov ecx, esi
call 0x403320
lea ecx, [esp + 0x4c]
call 0x406bd0
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x64]
cmp ecx, eax
jne 0x401a95
lea ecx, [esp + 0x140]
call 0x4056e0
test eax, eax
jne 0x401b0f
mov eax, dword [esp + 0x134]
push edi
push 2
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0x13c]
call 0x403390
lea ecx, [esp + 0x194]
mov byte [esp + 0x6cc], 0xc
call 0x403440
lea ecx, [esp + 0x194]
call 0x403380
push 1
lea ecx, [esp + 0x94]
mov byte [esp + 0x6d0], 7
call 0x404820
lea ecx, [esp + 0x60]
mov byte [esp + 0x6cc], 5
call 0x404150
lea ecx, [esp + 0x100]
mov byte [esp + 0x6cc], 1
call 0x403440
lea ecx, [esp + 0x100]
call 0x403380
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6d4], 0
call 0x405350
mov ecx, dword [esp + 0x18]
push ecx
call 0x408af0
add esp, 4
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
push 1
lea ecx, [esp + 0x54]
mov dword [esp + 0x6d0], 0xffffffff
call 0x404820
mov ecx, dword [esp + 0x6c4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c0
ret