Function at 0x4050f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406761
mov eax, dword fs:[0]
push eax
mov eax, 0x17d0
call fcn.004062b0
mov eax, dword [0x409018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1758], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x51c], ax
lea eax, [ebp - 0x51a]
push eax
xor ebx, ebx
call sub.MSVCR110.dll_memset
add esp, 0xc
xor eax, eax
push 0xfe
push eax
mov word [ebp - 0x314], ax
lea eax, [ebp - 0x312]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
xor eax, eax
push eax
push 0x407274
lea ecx, [ebp - 0x154c]
mov dword [ebp - 0x1538], 7
mov dword [ebp - 0x153c], ebx
mov word [ebp - 0x154c], ax
call fcn.00401b80
xor eax, eax
push 0xfe
mov dword [ebp - 4], ebx
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
xor eax, eax
push 0xfe
push eax
mov word [ebp - 0x114], ax
lea eax, [ebp - 0x112]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x51c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x314]
call fcn.00403560
xor eax, eax
mov dword [ebp - 0x175c], 7
mov dword [ebp - 0x1760], ebx
mov word [ebp - 0x1770], ax
cmp word [ebp - 0x51c], ax
jne 0x405216
xor ecx, ecx
jmp 0x40522f
lea ecx, [ebp - 0x51c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405220
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x51c]
push eax
lea ecx, [ebp - 0x1770]
call fcn.00401b80
lea eax, [ebp - 0x17dc]
push eax
lea ecx, [ebp - 0x1770]
mov byte [ebp - 4], 1
call fcn.00403160
mov ecx, 0xd
mov esi, eax
lea edi, [ebp - 0x17a4]
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 4], 0
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x175c], 8
jb 0x405288
push dword [ebp - 0x1770]
call edi
add esp, 4
mov ecx, dword [ebp - 0x1798]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x179c]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
push str._d._d._d._d
lea eax, [ebp - 0x214]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x1c
lea ecx, [ebp - 0x1754]
call fcn.00401290
xor eax, eax
push eax
push 0x407274
lea ecx, [ebp - 0x1534]
mov dword [ebp - 0x1520], 7
mov dword [ebp - 0x1524], 0
mov word [ebp - 0x1534], ax
call fcn.00401b80
xor eax, eax
push 0xffe
mov byte [ebp - 4], 2
push eax
mov word [ebp - 0x151c], ax
lea eax, [ebp - 0x151a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1754]
push eax
push 0x800
lea eax, [ebp - 0x151c]
push eax
push 0x407274
push str.DS_Def
push 0x407338
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x151c], 0
jne 0x40534f
xor ecx, ecx
jmp 0x40536f
lea ecx, [ebp - 0x151c]
lea edx, [ecx + 2]
jmp 0x405360
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405360
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x151c]
push eax
lea ecx, [ebp - 0x1534]
call fcn.00401b80
lea eax, [ebp - 0x154c]
push eax
lea ecx, [ebp - 0x1754]
call fcn.00401430
cmp dword [ebp - 0x153c], 1
jb 0x405470
push 1
push 0
push 0x4074e0
lea ecx, [ebp - 0x1534]
call fcn.004018e0
mov esi, eax
cmp esi, 0xffffffff
je 0x40540b
push 1
lea eax, [esi + 1]
push eax
push 0x4074e0
lea ecx, [ebp - 0x1534]
call fcn.004018e0
cmp eax, 0xffffffff
je 0x40540b
cmp dword [ebp - 0x1520], 8
lea ecx, [ebp - 0x1534]
cmovae ecx, dword [ebp - 0x1534]
sub eax, esi
lea eax, [eax*2 - 2]
push eax
lea eax, [ecx + 2]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0x114]
push eax
call sub.MSVCR110.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x114]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405414
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jb 0x405470
cmp dword [ebp - 0x1538], 8
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x214]
push ecx
lea eax, [ebp - 0x154c]
cmovae eax, dword [ebp - 0x154c]
push eax
lea eax, [ebp - 0x314]
push eax
push str.http:__up.soft365.com_Fan_rebirth_uid_sptid_sver_sdname_s
push 0x800
push dword [ebp - 0x1758]
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x1c
mov ebx, 1
cmp dword [ebp - 0x1520], 8
jb 0x405484
push dword [ebp - 0x1534]
call edi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x1538], 8
mov dword [ebp - 0x1520], 7
mov dword [ebp - 0x1524], 0
mov word [ebp - 0x1534], ax
jb 0x4054b5
push dword [ebp - 0x154c]
call edi
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004058f7
mov esp, ebp
pop ebp
ret 4