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

Disassembly:
push 0xffffffffffffffff
push 0x4179f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x74]
mov ebp, ecx
push edi
mov dword [esp + 0x24], ebp
call fcn.00401040
add esp, 4
test eax, eax
jne 0x402750
push edi
mov ecx, ebp
call fcn.00402bf0
jmp 0x402ab8
lea esi, [ebp + 0x18]
push edi
mov ecx, esi
call fcn.00411172
add ebp, 4
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.00403c80
lea ecx, [esp + 0x38]
call fcn.00411507
mov esi, dword [esi]
push ebx
push ebx
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x78], ebx
call fcn.0041157c
mov eax, dword [0x41e7f8]
mov dword [esp + 0x74], eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x6c], 1
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], ebx
call fcn.0041175f
test eax, eax
je 0x402a82
lea ecx, [esp + 0x74]
call fcn.00410627
lea ecx, [esp + 0x74]
call fcn.00410573
mov eax, dword [esp + 0x74]
cmp dword [eax - 8], ebx
je 0x402a6c
mov cl, byte [eax]
cmp cl, 0x3b
je 0x402a6c
cmp cl, 0x5b
jne 0x402908
mov edx, dword [0x41e7f8]
mov edi, 0x4193b8
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ebx
mov eax, dword [eax - 8]
lea ecx, [esp + 0x74]
add eax, 0xfffffffe
mov byte [esp + 0x6c], 2
push eax
lea eax, [esp + 0x18]
push 1
push eax
call fcn.00410014
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 3
call fcn.00411122
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
call fcn.00411035
lea ecx, [esp + 0x4c]
call fcn.00410627
lea ecx, [esp + 0x4c]
call fcn.00410573
mov edx, dword [0x41e7f8]
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x28], esp
mov dword [esp + 0x28], ecx
mov dword [ecx], edx
lea esi, [ecx + 4]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
lea eax, [esp + 0x64]
mov byte [esp + 0x84], 5
push eax
call fcn.00411122
mov ecx, dword [esp + 0x70]
push 0xffffffffffffffff
push ecx
mov ecx, esi
call fcn.00403820
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call fcn.00403bf0
mov ecx, ebp
mov byte [esp + 0x84], 2
call fcn.00403380
mov dword [esp + 0x10], eax
lea edx, [esp + 0x50]
mov dword [esp + 0x50], edi
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x54]
mov byte [esp + 0x6c], 7
cmp eax, ebx
je 0x4028fa
mov ecx, dword [esp + 0x58]
mov esi, eax
cmp ecx, ebx
je 0x4028f1
lea edi, [ecx]
push ebx
mov ecx, esi
call fcn.00404100
add esi, 0xc
dec edi
jne 0x4028df
mov eax, dword [esp + 0x54]
push eax
call fcn.0041148a
add esp, 4
mov byte [esp + 0x6c], 1
lea ecx, [esp + 0x4c]
jmp 0x402a67
push 0x3d
lea ecx, [esp + 0x78]
call fcn.004113d6
mov esi, eax
cmp esi, 0xffffffff
je 0x402a6c
mov eax, dword [0x41e7f8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x74], 8
call fcn.00410126
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 9
call fcn.00411122
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 8
call fcn.00411035
lea ecx, [esp + 0x2c]
call fcn.00410627
lea ecx, [esp + 0x2c]
call fcn.00410573
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x1c]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x74]
sub eax, esi
dec eax
push eax
push edx
call fcn.004100aa
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], 0xa
call fcn.00411122
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 8
call fcn.00411035
push 0x41e6c8
push 0x41e7f0
lea ecx, [esp + 0x38]
call fcn.0040feb1
push 0x41e6a4
lea ecx, [esp + 0x34]
call fcn.004105bf
push 0x41e6a4
lea ecx, [esp + 0x34]
call fcn.00410520
mov eax, dword [0x41e7f8]
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x30], esp
mov dword [esp + 0x34], ecx
mov dword [ecx], eax
mov edx, dword [0x41e7f8]
lea esi, [ecx + 4]
mov dword [esi], edx
mov eax, dword [0x41e7f8]
lea edi, [ecx + 8]
mov dword [edi], eax
lea edx, [esp + 0x38]
mov byte [esp + 0x78], 0xd
push edx
call fcn.00411122
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
call fcn.00411122
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call fcn.00411122
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x78], 8
push edx
mov ecx, ebp
call fcn.004034f0
mov ecx, eax
add ecx, 4
call fcn.00403030
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 0x10
call fcn.00411035
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 0xf
call fcn.00411035
mov byte [esp + 0x6c], 1
lea ecx, [esp + 0x2c]
call fcn.00411035
lea eax, [esp + 0x74]
lea ecx, [esp + 0x38]
push eax
call fcn.0041175f
test eax, eax
jne 0x4027ad
lea ecx, [esp + 0x38]
call fcn.004118ac
mov ecx, dword [esp + 0x20]
push ebx
call fcn.00403020
lea ecx, [esp + 0x74]
mov byte [esp + 0x6c], bl
call fcn.00411035
lea ecx, [esp + 0x38]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00411539
mov eax, 1
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 4