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

Disassembly:
sub esp, 0x10c
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x100], esi
mov dword [esp + 0x104], edi
mov dword [esp + 0x108], ebp
mov eax, dword [esp + 0x110]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x114]
mov edx, dword [esp + 0x2c]
mov dword [edx], eax
mov eax, dword [esp + 0x118]
mov dword [edx + 4], eax
mov eax, edx
add eax, 8
mov dword [esp], eax
call fcn.00433188
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 0x78], 0x4397cc
lea esi, [ecx + 0x78]
mov dword [ecx + 0x80], 0xffffffff
mov byte [ecx + 0x7c], 0
mov ebx, ecx
add ebx, 0x84
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
test eax, eax
jne 0x408b18
cmp dword [0x6fb4d0], 0
je 0x408aa4
mov dword [esp + 4], 1
mov dword [esp], 0x6fb4f0
call sub.msvcrt.dll_longjmp
mov dword [esp], 0x40000
call fcn.00401942
mov ebx, eax
mov dword [esp], 0x40000
call fcn.00401942
mov esi, eax
mov dword [esp + 8], 0x40000
mov dword [esp + 4], 0x436000
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0040d56a
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error_encountered
mov dword [esp + 4], esi
mov dword [esp], 0
call sub.USER32.dll_MessageBoxW
sub esp, 0x10
call fcn.0040996a
mov dword [esp], 2
call sub.msvcrt.dll_exit
mov dword [ebx], eax
lea ebx, [esi + 0x18]
mov dword [esp], 0x10000
call sub.msvcrt.dll_malloc
test eax, eax
jne 0x408bc2
cmp dword [0x6fb4d0], 0
je 0x408b4e
mov dword [esp + 4], 1
mov dword [esp], 0x6fb4f0
call sub.msvcrt.dll_longjmp
mov dword [esp], 0x40000
call fcn.00401942
mov ebx, eax
mov dword [esp], 0x40000
call fcn.00401942
mov esi, eax
mov dword [esp + 8], 0x10000
mov dword [esp + 4], 0x436000
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0040d56a
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error_encountered
mov dword [esp + 4], esi
mov dword [esp], 0
call sub.USER32.dll_MessageBoxW
sub esp, 0x10
call fcn.0040996a
mov dword [esp], 2
call sub.msvcrt.dll_exit
mov dword [ebx], eax
lea ebx, [esi + 0x10]
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
test eax, eax
jne 0x408c6c
cmp dword [0x6fb4d0], 0
je 0x408bf8
mov dword [esp + 4], 1
mov dword [esp], 0x6fb4f0
call sub.msvcrt.dll_longjmp
mov dword [esp], 0x40000
call fcn.00401942
mov ebx, eax
mov dword [esp], 0x40000
call fcn.00401942
mov esi, eax
mov dword [esp + 8], 0x40000
mov dword [esp + 4], 0x436000
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0040d56a
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error_encountered
mov dword [esp + 4], esi
mov dword [esp], 0
call sub.USER32.dll_MessageBoxW
sub esp, 0x10
call fcn.0040996a
mov dword [esp], 2
call sub.msvcrt.dll_exit
mov dword [ebx], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x14], eax
mov dword [esp + 4], 0x436286
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov eax, dword [esi + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call fcn.0040d56a
mov ebx, dword [esp + 0x2c]
mov dword [ebx + 0x94], 0x4397cc
lea esi, [ebx + 0x94]
mov dword [ebx + 0x9c], 0xffffffff
mov byte [ebx + 0x98], 0
lea ebx, [ebx + 0xa0]
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
test eax, eax
jne 0x408d66
cmp dword [0x6fb4d0], 0
je 0x408cf2
mov dword [esp + 4], 1
mov dword [esp], 0x6fb4f0
call sub.msvcrt.dll_longjmp
mov dword [esp], 0x40000
call fcn.00401942
mov ebx, eax
mov dword [esp], 0x40000
call fcn.00401942
mov esi, eax
mov dword [esp + 8], 0x40000
mov dword [esp + 4], 0x436000
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0040d56a
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error_encountered
mov dword [esp + 4], esi
mov dword [esp], 0
call sub.USER32.dll_MessageBoxW
sub esp, 0x10
call fcn.0040996a
mov dword [esp], 2
call sub.msvcrt.dll_exit
mov dword [ebx], eax
lea ebx, [esi + 0x18]
mov dword [esp], 0x10000
call sub.msvcrt.dll_malloc
test eax, eax
jne 0x408e10
cmp dword [0x6fb4d0], 0
je 0x408d9c
mov dword [esp + 4], 1
mov dword [esp], 0x6fb4f0
call sub.msvcrt.dll_longjmp
mov dword [esp], 0x40000
call fcn.00401942
mov ebx, eax
mov dword [esp], 0x40000
call fcn.00401942
mov esi, eax
mov dword [esp + 8], 0x10000
mov dword [esp + 4], 0x436000
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0040d56a
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error_encountered
mov dword [esp + 4], esi
mov dword [esp], 0
call sub.USER32.dll_MessageBoxW
sub esp, 0x10
call fcn.0040996a
mov dword [esp], 2
call sub.msvcrt.dll_exit
mov dword [ebx], eax
lea ebx, [esi + 0x10]
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
test eax, eax
jne 0x408eba
cmp dword [0x6fb4d0], 0
je 0x408e46
mov dword [esp + 4], 1
mov dword [esp], 0x6fb4f0
call sub.msvcrt.dll_longjmp
mov dword [esp], 0x40000
call fcn.00401942
mov ebx, eax
mov dword [esp], 0x40000
call fcn.00401942
mov esi, eax
mov dword [esp + 8], 0x40000
mov dword [esp + 4], 0x436000
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0040d56a
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error_encountered
mov dword [esp + 4], esi
mov dword [esp], 0
call sub.USER32.dll_MessageBoxW
sub esp, 0x10
call fcn.0040996a
mov dword [esp], 2
call sub.msvcrt.dll_exit
mov dword [ebx], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x14], eax
mov dword [esp + 4], 0x436286
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov eax, dword [esi + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call fcn.0040d56a
mov edi, dword [esp + 0x2c]
mov dword [0x43a010], edi
mov eax, dword [edi]
mov dword [esp], eax
call fcn.0040504e
mov dword [esp], edi
call fcn.00407962
mov dword [esp + 4], 0
mov eax, edi
add eax, 0x40
mov dword [esp], eax
call fcn.00432344
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0xd0]
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [esp + 0x38], eax
mov dword [esp + 0xd0], 0x4397cc
mov dword [esp + 0xd8], 0xffffffff
mov byte [esp + 0xd4], 0
lea ebx, [esp + 0xdc]
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
test eax, eax
jne 0x408ff3
cmp dword [0x6fb4d0], 0
je 0x408f7f
mov dword [esp + 4], 1
mov dword [esp], 0x6fb4f0
call sub.msvcrt.dll_longjmp
mov dword [esp], 0x40000
call fcn.00401942
mov ebx, eax
mov dword [esp], 0x40000
call fcn.00401942
mov esi, eax
mov dword [esp + 8], 0x40000
mov dword [esp + 4], 0x436000
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0040d56a
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error_encountered
mov dword [esp + 4], esi
mov dword [esp], 0
call sub.USER32.dll_MessageBoxW
sub esp, 0x10
call fcn.0040996a
mov dword [esp], 2
call sub.msvcrt.dll_exit
mov dword [ebx], eax
lea ebx, [ebp + 0x18]
mov dword [esp], 0x10000
call sub.msvcrt.dll_malloc
test eax, eax
jne 0x40909d
cmp dword [0x6fb4d0], 0
je 0x409029
mov dword [esp + 4], 1
mov dword [esp], 0x6fb4f0
call sub.msvcrt.dll_longjmp
mov dword [esp], 0x40000
call fcn.00401942
mov ebx, eax
mov dword [esp], 0x40000
call fcn.00401942
mov esi, eax
mov dword [esp + 8], 0x10000
mov dword [esp + 4], 0x436000
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0040d56a
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error_encountered
mov dword [esp + 4], esi
mov dword [esp], 0
call sub.USER32.dll_MessageBoxW
sub esp, 0x10
call fcn.0040996a
mov dword [esp], 2
call sub.msvcrt.dll_exit
mov dword [ebx], eax
lea ebx, [ebp + 0x10]
mov dword [esp], 0x40000
call sub.msvcrt.dll_malloc
test eax, eax
jne 0x409147
cmp dword [0x6fb4d0], 0
je 0x4090d3
mov dword [esp + 4], 1
mov dword [esp], 0x6fb4f0
call sub.msvcrt.dll_longjmp
mov dword [esp], 0x40000
call fcn.00401942
mov ebx, eax
mov dword [esp], 0x40000
call fcn.00401942
mov esi, eax
mov dword [esp + 8], 0x40000
mov dword [esp + 4], 0x436000
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0040d56a
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error_encountered
mov dword [esp + 4], esi
mov dword [esp], 0
call sub.USER32.dll_MessageBoxW
sub esp, 0x10
call fcn.0040996a
mov dword [esp], 2
call sub.msvcrt.dll_exit
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
mov dword [esp + 4], 0x436286
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.0040d56a
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.0040d56a
lea ebx, [esp + 0xd0]
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
mov edx, dword [eax]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4001c]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x40]
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0xdc]
mov dword [esp + 0xc], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x40074]
mov dword [esp + 8], eax
mov eax, dword [ecx]
movsx eax, byte [eax]
mov dword [esp + 4], eax
mov eax, dword [ecx + 4]
mov dword [esp], eax
call dword [edx + 0xc]
xor al, 1
mov byte [esp + 0x37], al
mov dword [esp + 0xd0], 0x4397cc
mov dword [esp], ebx
call fcn.00432ea4
cmp byte [esp + 0xd4], 0
je 0x40922e
mov dword [esp], ebx
mov eax, dword [esp + 0xd0]
call dword [eax + 0x14]
mov dword [esp], ebx
call fcn.0040df3c
mov byte [esp + 0xd4], 0
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 0x10]
je 0x40923e
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_free
cmp byte [esp + 0x37], 0
je 0x409270
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
mov dword [eax + 0x40068], 0
jmp 0x409504
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
cmp byte [eax], 0x74
je 0x409306
mov esi, ecx
add esi, 0x78
mov eax, dword [ecx + 4]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x10]
mov ebx, dword [esp + 0x2c]
cmp dword [ebx + 0x88], eax
je 0x4092ad
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x88]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov ebx, dword [esi + 0x10]
cmp byte [ebx], 0
je 0x4092f0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.msvcrt.dll_strchr
movsx eax, byte [eax - 1]
mov dword [esp + 4], eax
mov dword [esp], 0x436282
call sub.msvcrt.dll_strchr
test eax, eax
jne 0x4092f0
cld
mov ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
mov word [ecx + ebx - 1], 0x5c
mov dword [esp + 4], 0
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_strchr
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [eax + 0x400b8], 0
mov dword [eax + 0x400bc], 0
mov ecx, dword [eax]
movzx eax, byte [ecx]
cmp al, 0x6c
sete dl
cmp al, 0x76
sete al
or al, dl
je 0x40934d
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 4]
mov dword [esp], eax
call dword [edx + 0x2c]
jmp 0x409372
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll__filelengthi64
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [ecx + 0x14]
mov ebp, 0
mov eax, dword [esp + 0x2c]
add eax, 0x30
mov edi, dword [esp + 0x2c]
cmp dword [edi + 0x30], 0
jle 0x4094c1
mov dword [esp + 0x30], eax
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00432150
cmp dword [eax], 3
jne 0x4094af
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
add eax, 8
mov dword [esp + 4], eax
lea ebx, [esp + 0x40]
mov dword [esp], ebx
call fcn.004026a8
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
movzx eax, byte [ecx]
cmp al, 0x6c
sete dl
cmp al, 0x76
sete al
or al, dl
je 0x4093f7
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 4]
mov dword [esp], eax
call dword [edx + 0x34]
jmp 0x409428
mov ebx, 0
cmp dword [esp + 0xbc], 0
jle 0x409428
lea esi, [esp + 0x40]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov edi, dword [esp + 0x2c]
mov dword [esp], edi
call fcn.0040675e
inc ebx
cmp dword [esp + 0xbc], ebx
jg 0x40940a
lea eax, [esp + 0xbc]
mov dword [esp], eax
call fcn.00432134
lea eax, [esp + 0xb0]
mov dword [esp], eax
call fcn.0043240c
lea eax, [esp + 0xa0]
mov dword [esp], eax
call fcn.004324f4
lea eax, [esp + 0x94]
mov dword [esp], eax
call fcn.0043240c
lea eax, [esp + 0x88]
mov dword [esp], eax
call fcn.004325dc
lea eax, [esp + 0x7c]
mov dword [esp], eax
call fcn.004326c4
lea eax, [esp + 0x70]
mov dword [esp], eax
call fcn.00432220
lea eax, [esp + 0x60]
mov dword [esp], eax
call fcn.0043240c
lea eax, [esp + 0x54]
mov dword [esp], eax
call fcn.00432220
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.msvcrt.dll_free
inc ebp
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
cmp dword [edx + 0x30], ebp
jg 0x409390
mov ebx, dword [esp + 0x2c]
mov ecx, dword [ebx]
movzx eax, byte [ecx]
cmp al, 0x6c
sete dl
cmp al, 0x76
sete al
or al, dl
je 0x4094ec
mov eax, dword [ebx + 4]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [edx + 0x30]
jmp 0x409504
mov edi, dword [esp + 0x2c]
mov eax, dword [edi + 4]
mov edx, dword [eax]
mov eax, dword [edi]
mov dword [esp + 4], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call dword [edx + 0x24]
mov ebx, dword [esp + 0xfc]
mov esi, dword [esp + 0x100]
mov edi, dword [esp + 0x104]
mov ebp, dword [esp + 0x108]
add esp, 0x10c
ret