Function at 0x402440
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x423350
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x350
push ebp
push edi
mov edi, ecx
push 0x408
mov dword [esp + 0x34], edi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xf0
push eax
call ebp
test eax, eax
je 0x403036
lea ecx, [esp + 0x1c]
call fcn.00422340
lea ecx, [esp + 0x1c]
mov dword [esp + 0x360], 0
push ecx
lea ecx, [edi + 0x5d58]
call sub.MFC42.DLL_CWnd::GetWindowTextA
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 8]
test eax, eax
jg 0x4024e4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x360], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebp
mov ecx, dword [esp + 0x350]
mov dword fs:[0], ecx
add esp, 0x35c
ret
push ebx
push esi
lea esi, [edi + 0x1e14]
push str.User
lea eax, [esp + 0x1c]
push esi
push eax
call sub.MFC42.DLL_operator
push str.User.ini
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x374], 1
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea edx, [esp + 0x64]
push 0xff
push edx
push 0x430164
push 0x430160
push str.UserInfo
call ebx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x368], 0
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], eax
add esp, 4
mov al, byte [ecx]
cmp al, 0x2a
je 0x402582
cmp dword [ecx - 8], 3
jle 0x402741
cmp byte [ecx + 3], 0x2a
jne 0x402741
mov ecx, dword [edi + 0x5d78]
push 0
push 0
push 0x147
push ecx
call ebp
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
test ecx, ecx
jle 0x402741
inc eax
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x160]
lea ebp, [edx + 1]
push ebp
push str.item_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x18]
push str.User
push esi
push ecx
call sub.MFC42.DLL_operator
push str.User.ini
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x374], 2
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea ecx, [esp + 0x160]
push eax
lea eax, [esp + 0x64]
push 0xff
push eax
push 0x4333dc
push ecx
push str.UserOrder
call ebx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x368], 0
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [esp + 0x20]
add esp, 4
cmp eax, ecx
je 0x402659
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ebp
cmp ebp, eax
jl 0x4025ad
jmp 0x402741
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x160]
inc eax
push eax
push str.item_d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x18]
push str.User
push esi
push edx
call sub.MFC42.DLL_operator
push str.User.ini
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x370], 3
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea ecx, [esp + 0x60]
push eax
push 0xff
push ecx
lea edx, [esp + 0x16c]
push 0x4333dc
push edx
push str.UserInfo
call ebx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x368], 0
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x60]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x370], 4
call fcn.0040f120
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x36c], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x368], 4
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x368], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x54]
call fcn.00422340
mov eax, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
mov byte [esp + 0x368], 6
mov dword [esp + 0x1c], 0
jle 0x402b20
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x160]
lea eax, [ecx + 1]
push eax
push str.item_d
push edx
mov dword [esp + 0x3c], eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x18]
push str.User
push esi
push eax
call sub.MFC42.DLL_operator
push str.User.ini
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x374], 7
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea edx, [esp + 0x60]
push eax
push 0xff
push edx
lea eax, [esp + 0x16c]
push 0x4333dc
push eax
push str.UserInfo
call ebx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x368], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x14]
lea eax, [esp + 0x2c]
push edx
push eax
mov ecx, edi
mov byte [esp + 0x370], 8
call fcn.0040f120
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x36c], 9
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x368], 8
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x402867
test cl, cl
je 0x402863
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x402867
add eax, 2
add edi, 2
test cl, cl
jne 0x402843
xor eax, eax
jmp 0x40286c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40289e
lea ecx, [esp + 0x14]
mov byte [esp + 0x368], 6
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x38]
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x40276c
jmp 0x402b20
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x160]
inc eax
push eax
push str.item_d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x2c]
push str.User
push esi
push edx
call sub.MFC42.DLL_operator
push str.User.ini
push eax
lea eax, [esp + 0x38]
mov byte [esp + 0x370], 0xa
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea ecx, [esp + 0x60]
push eax
push 0xff
push ecx
lea edx, [esp + 0x16c]
push 0x4333dc
push edx
push str.UserOrder
call ebx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x368], 8
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov edi, eax
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], edi
call fcn.00422340
push edi
lea ecx, [esp + 0x14]
push 0x43013c
push ecx
mov byte [esp + 0x374], 0xb
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x44]
add esp, 0xc
xor eax, eax
mov dword [edx + 0x1e10], 1
inc eax
mov dword [esp + 0x4c], eax
push eax
lea eax, [esp + 0x164]
push str.item_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x2c]
push str.User
push esi
push ecx
call sub.MFC42.DLL_operator
push str.User.ini
lea edx, [esp + 0x34]
push eax
push edx
mov byte [esp + 0x374], 0xc
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea ecx, [esp + 0x160]
push eax
lea eax, [esp + 0x64]
push 0xff
push eax
push 0x4333dc
push ecx
push str.UserOrder
call ebx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x368], 0xb
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
mov edi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, edi
jne 0x402a55
push str.User
lea eax, [esp + 0x44]
push esi
push eax
call sub.MFC42.DLL_operator
push str.User.ini
lea ecx, [esp + 0x4c]
push eax
push ecx
mov byte [esp + 0x374], 0xd
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea edx, [esp + 0x160]
push eax
push 0x430138
push edx
push str.UserOrder
call ebp
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x368], 0xb
lea ecx, [esp + 0x40]
jmp 0x402ae5
jle 0x402aea
lea ecx, [esp + 0x1c]
inc edi
call fcn.00422340
push edi
lea eax, [esp + 0x20]
push 0x43013c
push eax
mov byte [esp + 0x374], 0xe
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x44]
push str.User
push esi
push ecx
call sub.MFC42.DLL_operator
push str.User.ini
lea edx, [esp + 0x40]
push eax
push edx
mov byte [esp + 0x374], 0xf
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea ecx, [esp + 0x160]
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
push str.UserOrder
call ebp
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x368], 0xe
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x368], 0xb
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jl 0x402965
lea ecx, [esp + 0x10]
mov byte [esp + 0x368], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x368], 6
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x38]
mov eax, dword [edi + 0x1e10]
test eax, eax
jne 0x40300f
mov ecx, dword [esp + 0x20]
xor eax, eax
test ecx, ecx
jle 0x402e53
inc eax
lea edx, [esp + 0x260]
push eax
push str.item_d
push edx
mov dword [esp + 0x34], eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x44]
push str.User
push esi
push eax
call sub.MFC42.DLL_operator
push str.User.ini
lea ecx, [esp + 0x50]
push eax
push ecx
mov byte [esp + 0x374], 0x10
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea edx, [esp + 0x60]
push eax
push 0xff
push edx
lea eax, [esp + 0x26c]
push 0x4333dc
push eax
push str.UserOrder
call ebx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x368], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
mov edi, eax
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, 5
jne 0x402db0
cmp edi, 5
je 0x402c70
lea ecx, [esp + 0x1c]
inc edi
call fcn.00422340
push edi
lea edx, [esp + 0x20]
push 0x43013c
push edx
mov byte [esp + 0x374], 0x11
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x40]
push str.User
push esi
push eax
call sub.MFC42.DLL_operator
push str.User.ini
lea ecx, [esp + 0x40]
push eax
push ecx
mov byte [esp + 0x374], 0x12
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov edx, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x264]
push edx
push eax
push str.UserOrder
call ebp
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x368], 0x11
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x368], 6
lea ecx, [esp + 0x1c]
jmp 0x402e3a
lea ecx, [esp + 0x18]
call fcn.00422340
push 1
lea ecx, [esp + 0x1c]
push 0x43013c
push ecx
mov byte [esp + 0x374], 0x13
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x30]
push str.User
push esi
push edx
call sub.MFC42.DLL_operator
push str.User.ini
push eax
lea eax, [esp + 0x50]
mov byte [esp + 0x370], 0x14
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
push eax
lea edx, [esp + 0x264]
push ecx
push edx
push str.UserOrder
call ebp
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x368], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
call fcn.00422340
lea eax, [esp + 0x24]
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x370], 0x15
call fcn.0040f050
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x36c], 0x16
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x368], 0x15
call sub.MFC42.DLL_CString::CString
push str.User
lea edx, [esp + 0x5c]
push esi
push edx
call sub.MFC42.DLL_operator
push str.User.ini
push eax
lea eax, [esp + 0x58]
mov byte [esp + 0x370], 0x17
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
push eax
lea edx, [esp + 0x264]
push ecx
push edx
push str.UserInfo
call ebp
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x58]
mov byte [esp + 0x368], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x368], 0x13
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x368], 6
lea ecx, [esp + 0x18]
jmp 0x402e3a
lea ecx, [esp + 0x10]
inc edi
call fcn.00422340
push edi
lea eax, [esp + 0x14]
push 0x43013c
push eax
mov byte [esp + 0x374], 0x18
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x34]
push str.User
push esi
push ecx
call sub.MFC42.DLL_operator
push str.User.ini
lea edx, [esp + 0x60]
push eax
push edx
mov byte [esp + 0x374], 0x19
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea ecx, [esp + 0x260]
push eax
mov eax, dword [esp + 0x14]
push eax
push ecx
push str.UserOrder
call ebp
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x368], 0x18
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x368], 6
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jl 0x402b3c
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
cmp eax, 5
je 0x40300f
mov ebx, eax
lea ecx, [esp + 0x18]
inc ebx
mov dword [esp + 0x20], ebx
call fcn.00422340
push ebx
lea edx, [esp + 0x1c]
push 0x43013c
push edx
mov byte [esp + 0x374], 0x1a
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x34]
push str.User
push esi
push eax
call sub.MFC42.DLL_operator
push str.User.ini
lea ecx, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x374], 0x1b
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov edx, dword [esp + 0x18]
push eax
push edx
push 0x430160
push str.UserInfo
call ebp
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x368], 0x1a
call sub.MFC42.DLL_CString::CString
push ebx
lea eax, [esp + 0x264]
push str.item_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00422340
lea ecx, [esp + 0x24]
lea edx, [esp + 0x28]
mov bl, 0x1c
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x370], bl
call fcn.0040f050
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x36c], 0x1d
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x368], bl
call sub.MFC42.DLL_CString::CString
push str.User
lea eax, [esp + 0x38]
push esi
push eax
call sub.MFC42.DLL_operator
push str.User.ini
lea ecx, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x374], 0x1e
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push edx
push eax
push str.UserInfo
call ebp
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x368], bl
call sub.MFC42.DLL_CString::CString
push str.User
lea ecx, [esp + 0x38]
push esi
push ecx
call sub.MFC42.DLL_operator
push str.User.ini
lea edx, [esp + 0x2c]
push eax
push edx
mov byte [esp + 0x374], 0x1f
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push eax
lea eax, [esp + 0x264]
push 0x430138
push eax
push str.UserOrder
call ebp
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x368], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x368], 0x1a
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x368], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x54]
mov byte [esp + 0x368], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x368], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
pop ebx
mov ecx, dword [esp + 0x358]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x35c
ret