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

Disassembly:
push 0xffffffffffffffff
push 0x41e070
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov al, byte [esp + 0x70]
push ebp
push esi
push edi
push 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], al
call fcn.0040f880
mov cl, byte [esp + 0x7c]
push 0
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
mov dword [esp + 0x78], 0
call fcn.0040f880
mov esi, dword [esp + 0x7c]
mov byte [esp + 0x74], 1
cmp dword [esi + 8], 1
jae 0x4023fd
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x78], 0
call fcn.0040f880
push 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x78], 0xffffffff
call fcn.0040f880
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x6c
ret
lea ecx, [esp + 0x3c]
call fcn.004114c0
mov edx, dword [0x41f17c]
lea ecx, [esp + 0x1c]
push edx
push 0
push esi
mov byte [esp + 0x80], 2
call fcn.0040f570
mov edi, str..txt
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str..txt
lea ecx, [esp + 0x24]
call fcn.0040fad0
push 0
push 3
push 0
lea eax, [esp + 0x28]
push 0x80000000
push eax
lea ecx, [esp + 0x50]
call fcn.004115a0
test al, al
je 0x4025db
mov edi, str.Read_pre_setup_from
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x10]
push ebp
call fcn.0040fc50
test al, al
je 0x4024a4
mov edi, dword [esp + 0x10]
mov ecx, ebp
mov edx, ecx
mov esi, str.Read_pre_setup_from
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 + 0x10]
call fcn.0040fc30
mov eax, dword [0x41f17c]
xor edi, edi
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
lea ecx, [esp + 0x18]
call fcn.0040f9f0
lea edx, [esp + 0xc]
push 0x422128
push edx
call fcn.00404c00
add esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp + 0x3c]
push eax
call fcn.004117d0
test al, al
je 0x4025d0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.00410d90
add esp, 8
mov ecx, dword [0x41f17c]
mov byte [esp + 0x74], 3
push ecx
push edi
push eax
lea ecx, [esp + 0x18]
call fcn.0040f570
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 2
call fcn.0040f880
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4025ba
ja 0x40252f
call fcn.00415317
lea ecx, [esp + 0xc]
call fcn.0040f800
mov edx, dword [esp + 0x10]
cmp byte [edx], 0x3b
je 0x4025ba
cmp dword [0x4306f0], edi
je 0x402581
mov al, byte [esp + 0xc]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x8c], esp
push edi
mov ecx, esi
mov byte [esi], al
call fcn.0040f880
mov ecx, dword [0x41f17c]
lea edx, [esp + 0x1c]
push ecx
push edi
push edx
mov ecx, esi
call fcn.0040f570
call fcn.00404df0
add esp, 0x10
jmp 0x4025ba
mov esi, dword [0x4306bc]
mov ecx, 0x4306b8
mov eax, dword [esi + 4]
push eax
push esi
call fcn.0040f9c0
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [esp + 0xc]
add eax, 8
push ecx
push eax
call fcn.00410090
mov eax, dword [0x4306c0]
add esp, 8
inc eax
mov dword [0x4306c0], eax
lea edx, [esp + 0xc]
lea ecx, [esp + 0x3c]
push edx
call fcn.004117d0
test al, al
jne 0x4024e3
lea ecx, [esp + 0x3c]
call fcn.00411710
jmp 0x40264c
mov edi, str.Failed_to_read_pre_setup_from
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x10]
push ebp
call fcn.0040fc50
test al, al
je 0x402621
mov edi, dword [esp + 0x10]
mov ecx, ebp
mov eax, ecx
mov esi, str.Failed_to_read_pre_setup_from
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ebp
mov byte [ecx + ebp], 0
mov edx, dword [0x41f17c]
lea eax, [esp + 0x1c]
push edx
push 0
push eax
lea ecx, [esp + 0x18]
call fcn.0040f9f0
lea ecx, [esp + 0xc]
push 0x422128
push ecx
call fcn.00404c00
add esp, 8
xor edi, edi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 1
call fcn.00411500
mov ecx, dword [esp + 0x20]
cmp ecx, edi
je 0x40267e
mov al, byte [ecx - 1]
test al, al
je 0x402674
cmp al, 0xff
je 0x402674
dec al
mov byte [ecx - 1], al
jmp 0x40267e
dec ecx
push ecx
call fcn.004150e0
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], edi
cmp ecx, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
je 0x4026be
mov al, byte [ecx - 1]
test al, al
je 0x4026b4
cmp al, 0xff
je 0x4026b4
dec al
mov byte [ecx - 1], al
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x6c
ret
dec ecx
push ecx
call fcn.004150e0
add esp, 4
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x6c
ret