Function at 0x406622
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x45062b
call fcn.0041e4b8
sub esp, 0x514
push ebx
push esi
push edi
push 4
push str.0121
push dword [ebp + 8]
mov esi, ecx
call fcn.0041efa0
add esp, 0xc
xor ebx, ebx
test eax, eax
push 0x200
push ebx
je 0x406b60
lea eax, [ebp - 0x320]
push eax
call fcn.0041e5e0
mov edi, 0x80
push edi
lea eax, [ebp - 0x120]
push ebx
push eax
call fcn.0041e5e0
push 0xb
lea eax, [ebp - 0x320]
push str.datetime20
push eax
call fcn.0041d970
push 2
lea eax, [esi + 0x1413]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0041d970
push 4
lea eax, [esi + 0x1415]
push eax
lea eax, [ebp - 0x11e]
push eax
call fcn.0041d970
push 6
lea eax, [esi + 0x1419]
push eax
lea eax, [ebp - 0x11a]
push eax
call fcn.0041d970
add esp, 0x48
push 0xc
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x315]
push eax
call fcn.0041d970
push 6
lea eax, [ebp - 0x309]
push str.trcd
push eax
call fcn.0041d970
movzx eax, byte [esi + 0x1168]
add esp, 0x18
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004058b8
mov eax, dword [eax]
push 3
push eax
lea eax, [ebp - 0x303]
push eax
call fcn.0041d970
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004011ce
push 6
lea eax, [ebp - 0x300]
push str.card
push eax
call fcn.0041d970
push edi
lea eax, [ebp - 0x120]
push ebx
push eax
call fcn.0041e5e0
push 0x13
lea eax, [esi + 0x1400]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0041d970
add esp, 0x24
cmp byte [ebp - 0x120], bl
je 0x40677f
lea eax, [ebp - 0x120]
cmp byte [eax], 0x20
jne 0x406779
mov byte [eax], 0
inc eax
cmp byte [eax], 0
jne 0x406771
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x20]
call fcn.00402d20
mov eax, dword [ebp - 0x20]
push dword [eax - 0xc]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x2fa]
push eax
call fcn.0041d970
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax - 0xc]
push 7
add ebx, 0x26
lea eax, [ebp + ebx - 0x320]
push str.card2
push eax
call fcn.0041d970
add esp, 0x18
add ebx, 7
cmp byte [esi + 0x1168], 0x49
jne 0x406848
push edi
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0041e5e0
push 0x13
lea eax, [esi + 0x169f]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0041d970
add esp, 0x18
cmp byte [ebp - 0x120], 0
je 0x406814
lea eax, [ebp - 0x120]
cmp byte [eax], 0x20
jne 0x40680e
mov byte [eax], 0
inc eax
cmp byte [eax], 0
jne 0x406806
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402d20
mov eax, dword [ebp - 0x14]
push dword [eax - 0xc]
push eax
lea eax, [ebp + ebx - 0x320]
push eax
call fcn.0041d970
mov eax, dword [ebp - 0x14]
add ebx, dword [eax - 0xc]
add esp, 0xc
lea ecx, [eax - 0x10]
call fcn.004011ce
push 5
lea eax, [ebp + ebx - 0x320]
push 0x457c88
push eax
call fcn.0041d970
mov al, byte [esi + 0x1168]
add esp, 0xc
add ebx, 5
cmp al, 0x31
je 0x40687c
cmp al, 0x49
je 0x40687c
cmp al, 0x42
je 0x40687c
cmp al, 0x30
jne 0x40692b
push edi
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.0041e5e0
add esp, 0xc
push str.C:_fephost.ini
push edi
lea eax, [ebp - 0xa0]
push eax
push 0x4577a3
mov eax, str.fetch_money
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0041e5e0
push 0xc
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0041d970
lea eax, [ebp - 0x120]
push eax
call fcn.0041fb69
fmul qword [0x457c80]
push edi
lea eax, [ebp - 0x120]
push 0
fstp qword [ebp - 0x1c]
push eax
call fcn.0041e5e0
fld qword [ebp - 0x1c]
add esp, 0x20
fstp qword [esp]
lea eax, [ebp - 0x120]
push str._09.2f
push eax
call fcn.0041e8d9
push 9
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp + ebx - 0x320]
push eax
call fcn.0041d970
add esp, 0x1c
add ebx, 9
push 5
lea eax, [ebp + ebx - 0x320]
push str.fee
push eax
call fcn.0041d970
push 5
lea eax, [esi + 0x2e96]
push str.00000
push eax
add ebx, 5
call fcn.0041efa0
add esp, 0x18
test eax, eax
je 0x4069da
push edi
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0041e5e0
push 5
lea eax, [esi + 0x2e96]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0041d970
lea eax, [ebp - 0x120]
push eax
call fcn.0041fb69
fmul qword [0x457c80]
push edi
lea eax, [ebp - 0x120]
push 0
fstp qword [ebp - 0x1c]
push eax
call fcn.0041e5e0
fld qword [ebp - 0x1c]
add esp, 0x20
fstp qword [esp]
lea eax, [ebp - 0x120]
push str._06.2f
push eax
call fcn.0041e8d9
push 6
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp + ebx - 0x320]
push eax
call fcn.0041d970
add esp, 0x1c
add ebx, 6
push 7
lea eax, [ebp + ebx - 0x320]
push str.devls
push eax
call fcn.0041d970
push 4
pop edi
push edi
lea eax, [esi + 0x132a]
push eax
add ebx, 7
lea eax, [ebp + ebx - 0x320]
push eax
call fcn.0041d970
push 8
add ebx, edi
lea eax, [ebp + ebx - 0x320]
push str.hostls
push eax
call fcn.0041d970
push 7
add ebx, 8
lea eax, [ebp + ebx - 0x320]
push str.retno
push eax
call fcn.0041d970
lea eax, [esi + 0x2ea5]
push edi
mov esi, str.0000
push esi
push eax
add ebx, 7
mov dword [ebp - 0x10], eax
call fcn.0041efa0
add esp, 0x3c
test eax, eax
jne 0x406a7f
push edi
push str.0110
push dword [ebp + 8]
call fcn.0041efa0
add esp, 0xc
test eax, eax
jne 0x406a7f
push edi
push dword [ebp - 0x10]
lea eax, [ebp + ebx - 0x320]
push eax
call fcn.0041d970
add esp, 0xc
push edi
push esi
push dword [ebp - 0x10]
call fcn.0041efa0
add esp, 0xc
test eax, eax
jne 0x406ab9
push edi
push str.0110
push dword [ebp + 8]
call fcn.0041efa0
add esp, 0xc
test eax, eax
je 0x406ab9
push edi
push dword [ebp + 8]
lea eax, [ebp + ebx - 0x320]
push eax
call fcn.0041d970
add esp, 0xc
push edi
push esi
push dword [ebp - 0x10]
call fcn.0041efa0
add esp, 0xc
test eax, eax
je 0x406ade
push edi
push dword [ebp - 0x10]
lea eax, [ebp + ebx - 0x320]
push eax
call fcn.0041d970
add esp, 0xc
push edi
mov esi, str.9999
push esi
push dword [ebp - 0x10]
call fcn.0041efa0
add esp, 0xc
test eax, eax
jne 0x406b06
push edi
lea eax, [ebp + ebx - 0x320]
push esi
push eax
call fcn.0041d970
add esp, 0xc
push 0x13
lea eax, [ebp + ebx - 0x31c]
push str.v_devlsv_hostls
push eax
call fcn.0041d970
add esp, 0xc
push str.c:ebmsEbmsCom.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x406b58
push str.EbmsTx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406b51
lea ecx, [ebp - 0x320]
push ecx
push str.A001
push str.127.0.0.1
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x20]
jmp 0x407010
lea eax, [ebp - 0x520]
push eax
call fcn.0041e5e0
mov edi, 0x80
push edi
lea eax, [ebp - 0xa0]
push ebx
push eax
call fcn.0041e5e0
push 0xb
lea eax, [ebp - 0x520]
push str.datetime20
push eax
call fcn.0041d970
push 2
lea eax, [esi + 0x1413]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0041d970
push 4
lea eax, [esi + 0x1415]
push eax
lea eax, [ebp - 0x9e]
push eax
call fcn.0041d970
push 6
lea eax, [esi + 0x1419]
push eax
lea eax, [ebp - 0x9a]
push eax
call fcn.0041d970
add esp, 0x48
push 0xc
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x515]
push eax
call fcn.0041d970
push 6
lea eax, [ebp - 0x509]
push str.trcd
push eax
call fcn.0041d970
push 3
lea eax, [ebp - 0x503]
push 0x457aa4
push eax
call fcn.0041d970
push 6
lea eax, [ebp - 0x500]
push str.card
push eax
call fcn.0041d970
push edi
lea eax, [ebp - 0xa0]
push ebx
push eax
call fcn.0041e5e0
push 0x13
lea eax, [esi + 0x1400]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0041d970
add esp, 0x48
cmp byte [ebp - 0xa0], 0
je 0x406c65
lea eax, [ebp - 0xa0]
cmp byte [eax], 0x20
jne 0x406c5f
mov byte [eax], 0
inc eax
cmp byte [eax], 0
jne 0x406c57
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402d20
mov eax, dword [ebp - 0x14]
push dword [eax - 0xc]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x4fa]
push eax
call fcn.0041d970
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax - 0xc]
push 7
add ebx, 0x26
lea eax, [ebp + ebx - 0x520]
push str.card2
push eax
call fcn.0041d970
add esp, 0x18
add ebx, 7
cmp byte [esi + 0x130c], 0x49
jne 0x406d32
push edi
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.0041e5e0
push 0x13
lea eax, [esi + 0x169f]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0041d970
add esp, 0x18
cmp byte [ebp - 0xa0], 0
je 0x406cfe
lea eax, [ebp - 0xa0]
cmp byte [eax], 0x20
jne 0x406cf8
mov byte [eax], 0
inc eax
cmp byte [eax], 0
jne 0x406cf0
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402d20
mov eax, dword [ebp - 0x10]
push dword [eax - 0xc]
push eax
lea eax, [ebp + ebx - 0x520]
push eax
call fcn.0041d970
mov eax, dword [ebp - 0x10]
add ebx, dword [eax - 0xc]
add esp, 0xc
lea ecx, [eax - 0x10]
call fcn.004011ce
push 5
lea eax, [ebp + ebx - 0x520]
push 0x457c88
push eax
call fcn.0041d970
mov al, byte [esi + 0x130c]
add esp, 0xc
add ebx, 5
cmp al, 0x31
je 0x406d62
cmp al, 0x49
je 0x406d62
cmp al, 0x42
je 0x406d62
cmp al, 0x30
jne 0x406de0
push edi
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.0041e5e0
push 0xc
lea eax, [esi + 0x132e]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0041d970
lea eax, [ebp - 0xa0]
push eax
call fcn.0041fb69
fmul qword [0x457c80]
push edi
lea eax, [ebp - 0xa0]
push 0
fstp qword [ebp - 0x1c]
push eax
call fcn.0041e5e0
fld qword [ebp - 0x1c]
add esp, 0x20
fstp qword [esp]
lea eax, [ebp - 0xa0]
push str._09.2f
push eax
call fcn.0041e8d9
push 9
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp + ebx - 0x520]
push eax
call fcn.0041d970
add esp, 0x1c
add ebx, 9
push 5
lea eax, [ebp + ebx - 0x520]
push str.fee
push eax
call fcn.0041d970
push 5
lea eax, [esi + 0x2e96]
push str.00000
push eax
add ebx, 5
call fcn.0041efa0
add esp, 0x18
test eax, eax
je 0x406e8f
push edi
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.0041e5e0
push 5
lea eax, [esi + 0x2e96]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0041d970
lea eax, [ebp - 0xa0]
push eax
call fcn.0041fb69
fmul qword [0x457c80]
push edi
lea eax, [ebp - 0xa0]
push 0
fstp qword [ebp - 0x1c]
push eax
call fcn.0041e5e0
fld qword [ebp - 0x1c]
add esp, 0x20
fstp qword [esp]
lea eax, [ebp - 0xa0]
push str._06.2f
push eax
call fcn.0041e8d9
push 6
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp + ebx - 0x520]
push eax
call fcn.0041d970
add esp, 0x1c
add ebx, 6
push 7
lea eax, [ebp + ebx - 0x520]
push str.devls
push eax
call fcn.0041d970
push 4
pop edi
push edi
lea eax, [esi + 0x132a]
push eax
add ebx, 7
lea eax, [ebp + ebx - 0x520]
push eax
call fcn.0041d970
push 8
add ebx, edi
lea eax, [ebp + ebx - 0x520]
push str.hostls
push eax
call fcn.0041d970
push 7
add ebx, 8
lea eax, [ebp + ebx - 0x520]
push str.retno
push eax
call fcn.0041d970
lea eax, [esi + 0x2ea5]
push edi
mov esi, str.0000
push esi
push eax
add ebx, 7
mov dword [ebp - 0x10], eax
call fcn.0041efa0
add esp, 0x3c
test eax, eax
jne 0x406f34
push edi
push str.0110
push dword [ebp + 8]
call fcn.0041efa0
add esp, 0xc
test eax, eax
jne 0x406f34
push edi
push dword [ebp - 0x10]
lea eax, [ebp + ebx - 0x520]
push eax
call fcn.0041d970
add esp, 0xc
push edi
push esi
push dword [ebp - 0x10]
call fcn.0041efa0
add esp, 0xc
test eax, eax
jne 0x406f6e
push edi
push str.0110
push dword [ebp + 8]
call fcn.0041efa0
add esp, 0xc
test eax, eax
je 0x406f6e
push edi
push dword [ebp + 8]
lea eax, [ebp + ebx - 0x520]
push eax
call fcn.0041d970
add esp, 0xc
push edi
push esi
push dword [ebp - 0x10]
call fcn.0041efa0
add esp, 0xc
test eax, eax
je 0x406f93
push edi
push dword [ebp - 0x10]
lea eax, [ebp + ebx - 0x520]
push eax
call fcn.0041d970
add esp, 0xc
push edi
mov esi, str.9999
push esi
push dword [ebp - 0x10]
call fcn.0041efa0
add esp, 0xc
test eax, eax
jne 0x406fbb
push edi
lea eax, [ebp + ebx - 0x520]
push esi
push eax
call fcn.0041d970
add esp, 0xc
push 0x13
lea eax, [ebp + ebx - 0x51c]
push str.v_devlsv_hostls
push eax
call fcn.0041d970
add esp, 0xc
push str.c:ebmsEbmsCom.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40700d
push str.EbmsTx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407006
lea ecx, [ebp - 0x520]
push ecx
push str.A001
push str.127.0.0.1
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004011ce
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4