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

Disassembly:
push 0xffffffffffffffff
push 0x4193c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x41f2b0]
xor eax, esp
mov dword [esp + 0x1c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41f2b0]
xor eax, esp
push eax
lea eax, [esp + 0x1e4]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x1f4]
xor ebp, ebp
push ebx
mov edi, 0x41bd30
lea esi, [esp + 0x9c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebp
call fcn.004024f0
add esp, 4
mov dword [esp + 0x1ec], ebp
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebp
mov byte [esp + 0x64], 0
mov byte [esp + 0x1ec], 1
mov eax, dword [esp + 0x9c]
mov esi, 0x10
cmp dword [esp + 0xb0], esi
jae 0x40182d
lea eax, [esp + 0x9c]
lea ecx, [esp + 0xb4]
push ecx
push eax
call fcn.0040c479
mov edi, eax
add esp, 8
mov dword [esp + 0x24], edi
cmp edi, 0xffffffff
jne 0x401894
push str.read_file_fail__n
call fcn.0040c6d8
add esp, 4
cmp dword [esp + 0x78], esi
jb 0x401869
mov edx, dword [esp + 0x64]
push edx
call fcn.0040c0bb
add esp, 4
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebp
mov byte [esp + 0x64], 0
cmp dword [esp + 0xb0], esi
jb 0x401c81
mov eax, dword [esp + 0x9c]
push eax
jmp 0x401c79
cmp dword [ebx + 0x18], esi
jb 0x4018a5
mov eax, dword [ebx + 4]
lea esi, [ebx + 4]
mov dword [esp + 0x1c], esi
jmp 0x4018ae
lea eax, [ebx + 4]
mov dword [esp + 0x1c], eax
mov esi, eax
lea ecx, [esp + 0xd8]
push ecx
push eax
push 0x41bd4c
call fcn.0040c6d8
add esp, 0xc
lea edx, [esp + 0xb4]
push edx
push edi
call fcn.0040c5a9
add esp, 8
test eax, eax
jne 0x401ae1
cmp dword [esp + 0xb4], 0x10
jne 0x401aff
push 0xffffffffffffffff
push ebp
push ebx
lea ecx, [esp + 0x6c]
call fcn.004028b0
push 1
push 0x41bd5c
lea eax, [esp + 0x68]
call fcn.004022f0
lea eax, [esp + 0xd8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401912
sub eax, edx
push eax
lea eax, [esp + 0xdc]
push eax
lea eax, [esp + 0x68]
call fcn.004022f0
mov edi, 0xf
lea eax, [esp + 0xd8]
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebp
mov byte [esp + 0x80], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401952
sub eax, edx
push eax
lea ecx, [esp + 0xdc]
push ecx
lea ecx, [esp + 0x84]
call fcn.00402b60
mov byte [esp + 0x1ec], 2
mov esi, dword [esp + 0x90]
or dword [esp + 0x18], 1
mov eax, esi
cmp esi, 1
jb 0x401990
mov eax, 1
mov edx, dword [esp + 0x80]
mov ebx, 0x10
cmp dword [esp + 0x94], ebx
jae 0x4019ac
lea edx, [esp + 0x80]
mov ecx, 0x41bd60
call fcn.00402650
cmp eax, ebp
jne 0x4019cb
cmp esi, 1
jb 0x4019cb
xor eax, eax
cmp esi, 1
setne al
cmp eax, ebp
je 0x401a43
lea eax, [esp + 0xd8]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x2c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4019e2
sub eax, edx
push eax
lea edx, [esp + 0xdc]
push edx
lea ecx, [esp + 0x30]
call fcn.00402b60
mov esi, dword [esp + 0x3c]
or dword [esp + 0x18], 2
mov eax, esi
cmp esi, 2
jb 0x401a12
mov eax, 2
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x40], ebx
jae 0x401a20
lea edx, [esp + 0x2c]
mov ecx, 0x41bd64
call fcn.00402650
cmp eax, ebp
jne 0x401a3f
cmp esi, 2
jb 0x401a3f
xor eax, eax
cmp esi, 2
setne al
cmp eax, ebp
je 0x401a43
xor bl, bl
jmp 0x401a45
mov bl, 1
test byte [esp + 0x18], 2
je 0x401a76
and dword [esp + 0x18], 0xfffffffd
cmp dword [esp + 0x40], 0x10
jb 0x401a65
mov eax, dword [esp + 0x2c]
push eax
call fcn.0040c0bb
add esp, 4
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x2c], 0
mov dword [esp + 0x1ec], 1
test byte [esp + 0x18], 1
je 0x401aa7
and dword [esp + 0x18], 0xfffffffe
cmp dword [esp + 0x94], 0x10
jb 0x401aa7
mov ecx, dword [esp + 0x80]
push ecx
call fcn.0040c0bb
add esp, 4
test bl, bl
jne 0x401ab8
lea edx, [esp + 0x60]
push edx
call fcn.00401790
add esp, 4
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0xb4]
push edx
push eax
call fcn.0040c5a9
add esp, 8
test eax, eax
je 0x4018dd
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
push edi
call fcn.0040c7cd
mov edi, 0x10
add esp, 4
cmp dword [ebx + 0x18], edi
jb 0x401c1d
mov eax, dword [esi]
jmp 0x401c1f
lea eax, [esp + 0xd8]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x2c], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b20
sub eax, edx
push eax
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x30]
call fcn.00402b60
push ebx
mov edi, 0x41bd5c
lea esi, [esp + 0x48]
mov byte [esp + 0x1f0], 4
call fcn.004024f0
add esp, 4
lea ecx, [esp + 0x28]
push ecx
push eax
lea edi, [esp + 0x84]
mov byte [esp + 0x1f4], 5
call fcn.004025a0
mov esi, 0x10
add esp, 8
cmp dword [esp + 0x5c], esi
jb 0x401b8a
mov edx, dword [esp + 0x48]
push edx
call fcn.0040c0bb
add esp, 4
mov byte [esp + 0x1ec], 1
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebp
mov byte [esp + 0x48], 0
cmp dword [esp + 0x40], esi
jb 0x401bb6
mov eax, dword [esp + 0x2c]
push eax
call fcn.0040c0bb
add esp, 4
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], esi
jae 0x401bcd
lea eax, [esp + 0x80]
push eax
push 0x41bd68
call fcn.0040c6d8
mov eax, dword [esp + 0x88]
add esp, 8
cmp dword [esp + 0x94], esi
jae 0x401bf2
lea eax, [esp + 0x80]
push eax
call fcn.0040c79d
add esp, 4
cmp dword [esp + 0x94], esi
jb 0x401abc
mov ecx, dword [esp + 0x80]
push ecx
call fcn.0040c0bb
add esp, 4
jmp 0x401abc
mov eax, esi
push eax
call fcn.00418ff6
mov eax, dword [esp + 0x68]
add esp, 4
cmp dword [esp + 0x78], edi
jae 0x401c36
lea eax, [esp + 0x64]
push eax
push 0x41bd78
call fcn.0040c6d8
add esp, 8
cmp dword [esp + 0x78], edi
jb 0x401c57
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0040c0bb
add esp, 4
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebp
mov byte [esp + 0x64], 0
cmp dword [esp + 0xb0], edi
jb 0x401c81
mov edx, dword [esp + 0x9c]
push edx
call fcn.0040c0bb
add esp, 4
mov ecx, dword [esp + 0x1e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.0040c0c6
add esp, 0x1dc
ret