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

Disassembly:
push 0xffffffffffffffff
push 0x4160d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x25c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov byte [esp + 0x6c], 0
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0x6d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4c], ebp
stosb byte es:[edi], al
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
mov eax, dword [esp + 0x27c]
xor edi, edi
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x278], edi
call dword [0x4171b4]
push 1
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Right]
mov esi, eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
cmp eax, 1
jne 0x409060
push edi
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator]
cmp al, 0x5c
jne 0x409060
xor bl, bl
jmp 0x409062
mov bl, 1
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test bl, bl
je 0x40907c
push 0x5c
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
mov eax, dword [esp + 0x284]
cmp eax, edi
je 0x40908d
mov dword [esp + 0x34], eax
jmp 0x4090ec
push 0x10
call sub.MSVCR71.dll_malloc
add esp, 4
cmp eax, edi
je 0x4090a8
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov esi, eax
jmp 0x4090aa
xor esi, esi
mov edx, dword [ebp]
push esi
mov ecx, ebp
mov byte [esp + 0x278], 0
mov dword [esp + 0x38], esi
call dword [edx + 4]
mov edi, eax
test edi, edi
je 0x4090ea
test esi, esi
je 0x4090d9
mov ecx, esi
call fcn.00403e50
push esi
call sub.MSVCR71.dll_free
add esp, 4
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, edi
jmp 0x4097e3
xor edi, edi
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x4090ff
mov edi, dword [ebx + 8]
sub edi, eax
sar edi, 2
push ebx
mov ecx, ebp
call fcn.00408cc0
mov esi, dword [esp + 0x280]
test esi, esi
mov dword [esp + 0x2c], eax
je 0x40911e
mov edx, dword [esi]
push eax
push edi
mov ecx, esi
call dword [edx]
mov edi, 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], edi
mov ebx, dword [ebx + 4]
mov eax, dword [eax + 8]
cmp ebx, eax
mov byte [esp + 0x274], 3
mov dword [esp + 0x14], ebx
jae 0x4095dd
jmp 0x409180
mov ebp, dword [esp + 0x4c]
lea esp, [esp]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4095d1
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4095d1
mov ecx, ebx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, ebp
call fcn.00408a30
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x278], 4
call dword [0x4171b8]
lea ecx, [esp + 0x68]
mov byte [esp + 0x274], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x40]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, ebp
call fcn.004085b0
test eax, eax
je 0x409598
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [esp + 0x58]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov edi, dword [0x417100]
push eax
call edi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40924c
mov dword [esp + 0x28], 0
call dword [0x4170f8]
cmp eax, 2
je 0x4095a0
cmp eax, 3
je 0x4095a0
test esi, esi
je 0x4095bb
lea edx, [esp + 0x24]
push edx
push 0x11
jmp 0x4095ab
push 0
push ebp
call dword [0x41709c]
mov ecx, ebx
mov dword [esp + 0x58], eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x54]
call fcn.00408b80
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x280], 5
call fcn.00404b60
add esp, 0xc
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x278], 6
call dword [0x4171b8]
lea ecx, [esp + 0x5c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x64]
mov byte [esp + 0x274], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0x50]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4093c0
call dword [0x4170f8]
cmp eax, 3
jne 0x40939d
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x54]
call fcn.00408610
push 0
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [0x41706c]
lea ecx, [esp + 0x54]
mov edi, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test edi, edi
je 0x40937a
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0x50]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [0x417100]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4093c0
push ebp
mov dword [esp + 0x2c], 0
call dword [0x417094]
test esi, esi
je 0x4095bb
lea edx, [esp + 0x24]
push edx
push 0x13
jmp 0x4095ab
push ebp
mov dword [esp + 0x2c], 0
call dword [0x417094]
test esi, esi
je 0x4095bb
lea eax, [esp + 0x24]
push eax
push 0x13
jmp 0x4095ab
push ebp
mov dword [esp + 0x2c], 0
call dword [0x417094]
test esi, esi
je 0x4095bb
lea ecx, [esp + 0x24]
push ecx
push 0x13
jmp 0x4095ab
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x409582
push 0
lea edx, [esp + 0x24]
push edx
push 0x200
lea eax, [esp + 0x78]
push eax
push ebp
call dword [0x4170b0]
test eax, eax
je 0x4094fa
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x64]
push ecx
push edx
lea eax, [esp + 0x78]
push eax
push edi
call dword [0x4170ac]
test eax, eax
je 0x409528
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x48]
add ecx, eax
add edx, eax
test ecx, ecx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x48], edx
jge 0x409448
fadd dword [0x418d0c]
mov ecx, dword [esp + 0x58]
fild dword [esp + 0x58]
test ecx, ecx
jge 0x40945a
fadd dword [0x418d0c]
fdivp st(1)
fmul dword [0x418d08]
call fcn.00414974
cmp dword [esp + 0x44], eax
je 0x409492
test esi, esi
mov dword [esp + 0x44], eax
je 0x409492
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
push eax
mov ecx, ebx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov eax, dword [esp + 0x20]
mov ecx, esi
call dword [eax + 8]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x48]
fild dword [esp + 0x48]
test edx, edx
jge 0x4094a4
fadd dword [0x418d0c]
mov eax, dword [esp + 0x2c]
fild dword [esp + 0x2c]
test eax, eax
jge 0x4094b6
fadd dword [0x418d0c]
fdivp st(1)
fmul dword [0x418d08]
call fcn.00414974
cmp dword [esp + 0x3c], eax
je 0x4094d9
test esi, esi
mov dword [esp + 0x3c], eax
je 0x4094e9
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0xc]
test esi, esi
je 0x4094e9
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call dword [eax + 0x14]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4093d2
jmp 0x409582
call dword [0x4170f8]
test esi, esi
mov dword [esp + 0x28], 0
je 0x409582
mov eax, dword [esi]
lea edx, [esp + 0x24]
push edx
push 0x11
mov ecx, ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov eax, dword [esp + 0x24]
jmp 0x409579
call dword [0x4170f8]
cmp eax, 0x70
mov dword [esp + 0x28], 0
jne 0x40955b
test esi, esi
je 0x409582
mov eax, dword [esi]
lea ecx, [esp + 0x24]
push ecx
push 0x14
mov ecx, ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov eax, dword [esp + 0x24]
jmp 0x409579
test esi, esi
je 0x409582
mov eax, dword [esi]
lea edx, [esp + 0x24]
push edx
push 0x13
mov ecx, ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov eax, dword [esp + 0x24]
mov ecx, esi
call dword [eax + 0x10]
mov ebx, dword [esp + 0x14]
push edi
mov edi, dword [0x417094]
mov dword [esp + 0x48], 0
call edi
push ebp
call edi
jmp 0x4095bb
mov dword [esp + 0x28], 0
test esi, esi
je 0x4095bb
lea eax, [esp + 0x24]
push eax
push 0x12
mov edi, dword [esi]
mov ecx, ebx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov ecx, esi
push eax
call dword [edi + 0x10]
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 8]
add ebx, 4
cmp ebx, eax
mov dword [esp + 0x14], ebx
jb 0x409175
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40977f
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x40977f
push 0
push 0x5c
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find]
inc eax
push eax
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push str.RISING.INI
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x280], 7
call fcn.00408700
add esp, 0xc
lea ecx, [esp + 0x2c]
mov byte [esp + 0x274], 9
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0
push 0x5c
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find]
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid]
mov bl, 0xa
push 0x5c
lea ecx, [esp + 0x18]
mov byte [esp + 0x278], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
cmp eax, 0xffffffff
je 0x4096f1
push 0x5c
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
push eax
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x278], 0xb
call dword [0x4171b8]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x274], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x5c
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x278], 0xc
call dword [0x4171b8]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x274], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x2f
push 0x5c
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Replace]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [0x4170a8]
push 0
lea ecx, [esp + 0x24]
mov edi, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov ebx, dword [0x4170a4]
push eax
call ebx
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str.UpdatePath
push str.MAIN
call dword [0x4170a0]
test eax, eax
jne 0x409755
mov dword [esp + 0x28], eax
push edi
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call ebx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x20]
mov byte [esp + 0x274], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test esi, esi
je 0x4097a4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40979a
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x40979a
mov eax, 1
jmp 0x40979c
xor eax, eax
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esp + 0x284]
test eax, eax
jne 0x4097c3
mov esi, dword [esp + 0x34]
mov ecx, esi
call fcn.00403e50
push esi
call sub.MSVCR71.dll_free
add esp, 4
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x40]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x268
ret 0xc