Function at 0x404db0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x410a12
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd20
mov eax, dword [0x418168]
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
mov dword [esp + 0xd24], eax
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], edi
je 0x404e14
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], eax
jne 0x4054b8
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push eax
mov ecx, esi
mov dword [esp + 0xd38], ebx
call fcn.00404d20
lea ecx, [esp + 0x84]
mov dword [esp + 0xd34], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [edi + 0x18], ebx
mov dword [esp + 0x1c], str.top50level.html
mov dword [esp + 0x20], str.top50money.html
mov dword [esp + 0x24], str.top50xinfa.html
mov dword [esp + 0x28], str.top50valentine.html
mov dword [esp + 0x2c], str.top50valentinst.html
je 0x4054b8
push str..System.cfg
mov byte [esp + 0x3f4], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x3f5]
rep stosd dword es:[edi], eax
push 0x104
lea edx, [esp + 0x3f8]
push edx
push 0x412b46
stosw word es:[edi], ax
push str.PaiHangBang_LinkURL
push str.Variable
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..System.cfg
push 0x3a8
push str.System_CodePage
push str.Variable
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0x3b6
jne 0x4051fb
xor eax, eax
mov word [esp + 0x708], bx
mov ecx, 0x185
lea edi, [esp + 0x70a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x4131e4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404f06
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x104
lea ecx, [esp + 0x70c]
push ecx
sub eax, edx
push eax
push 0x4131e4
push ebx
push 0x3a8
call esi
mov eax, 0x4131d4
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404f38
push 0x104
lea edx, [esp + 0x914]
push edx
sub eax, ecx
push eax
push 0x4131d4
push ebx
push 0x3a8
call esi
mov eax, 0x4131c4
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404f64
push 0x104
sub eax, ecx
lea ecx, [esp + 0xb1c]
push ecx
push eax
push 0x4131c4
push ebx
push 0x3a8
call esi
lea edx, [esp + 0x708]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
jmp 0x404fa0
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x600]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x2e8]
rep stosd dword es:[edi], eax
mov edi, edi
mov cl, byte [esp + eax + 0x3f0]
mov byte [esp + eax + 0x2e8], cl
inc eax
test cl, cl
jne 0x404fc0
lea edi, [esp + 0x2e8]
dec edi
jmp 0x404fe0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404fe0
mov bx, word [0x413098]
mov eax, dword [ebp + 8]
mov word [edi], bx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404ff7
lea edi, [esp + 0x2e8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405008
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2e8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405028
mov eax, dword [esp + 0xc]
mov word [edi], bx
mov ebx, dword [esp + eax*4 + 0x1c]
mov eax, ebx
mov esi, ebx
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405040
lea edi, [esp + 0x2e8]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405051
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x600]
mov dword [esp + 0xd34], 1
mov eax, ebx
sub ecx, ebx
nop
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x405090
mov eax, dword [ebp + 8]
mov esi, eax
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4050a0
lea edi, [esp + 0x600]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4050b1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [esp + 0x600]
rep movsb byte es:[edi], byte [esi]
push edx
lea ecx, [esp + 0xf8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x2e8]
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0xd38], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
sub esp, 0x1c
lea edx, [esp + 0x84]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov byte [esp + 0xd54], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x68]
push eax
mov ecx, esi
call fcn.004036e0
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0xd38], 4
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x4c]
mov byte [esp + 0xd34], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0xf8]
push edx
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x224]
call fcn.00403140
lea ecx, [esp + 0x218]
push ecx
mov ecx, dword [esi + 0x18]
mov byte [esp + 0xd38], 5
call fcn.00403450
lea ecx, [esp + 0x218]
mov byte [esp + 0xd34], 3
call fcn.004030a0
lea ecx, [esp + 0x68]
mov byte [esp + 0xd34], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xf4]
mov byte [esp + 0xd34], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x84]
mov dword [esp + 0xd34], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
inc eax
add edx, 0x208
cmp eax, 3
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
jl 0x404fa0
jmp 0x4054b8
xor edx, edx
mov dword [esp + 0x68], 0x4131ac
mov dword [esp + 0x6c], 0x413194
mov dword [esp + 0x70], 0x41317c
mov dword [esp + 0x74], 0x413160
mov dword [esp + 0x78], 0x413144
mov dword [esp + 0xc], edx
jmp 0x405230
mov edx, dword [esp + 0xc]
nop
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x4f8]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x110]
rep stosd dword es:[edi], eax
mov edi, edi
mov cl, byte [esp + eax + 0x3f0]
mov byte [esp + eax + 0x110], cl
inc eax
test cl, cl
jne 0x405250
lea edi, [esp + 0x110]
dec edi
jmp 0x405270
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405270
cmp edx, 0xc
mov bx, word [0x413098]
mov word [edi], bx
je 0x40528c
cmp edx, 0x10
jne 0x4052ae
lea edi, [esp + 0x110]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405294
mov edx, dword [str.rose_]
mov ax, word [0x413140]
mov dword [edi], edx
mov word [edi + 4], ax
mov eax, dword [ebp + 8]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4052b3
lea edi, [esp + 0x110]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4052c4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x110]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4052e4
mov ecx, dword [esp + 0xc]
mov word [edi], bx
mov ebx, dword [esp + ecx + 0x1c]
mov eax, ebx
mov esi, ebx
jmp 0x405300
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405300
lea edi, [esp + 0x110]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405311
mov edx, dword [esp + 0xc]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + edx + 0x68]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0xc0]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x4f8]
mov dword [esp + 0xd34], 6
mov eax, ebx
sub ecx, ebx
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x405353
mov eax, dword [ebp + 8]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405362
lea edi, [esp + 0x4f8]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405373
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4f8]
push ecx
lea ecx, [esp + 0xdc]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea edx, [esp + 0x110]
push edx
lea ecx, [esp + 0xa4]
mov byte [esp + 0xd38], 7
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
sub esp, 0x1c
lea eax, [esp + 0xbc]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
mov byte [esp + 0xd54], 8
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call fcn.004036e0
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0xd38], 9
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x30]
mov byte [esp + 0xd34], 8
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea edx, [esp + 0xa0]
push edx
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [esp + 0x28c]
call fcn.00403140
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0x280]
push edx
mov byte [esp + 0xd38], 0xa
call fcn.00403450
lea ecx, [esp + 0x280]
mov byte [esp + 0xd34], 8
call fcn.004030a0
lea ecx, [esp + 0xa0]
mov byte [esp + 0xd34], 7
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xd8]
mov byte [esp + 0xd34], 6
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xbc]
mov dword [esp + 0xd34], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0xc]
add eax, 4
cmp eax, 0x14
mov dword [esp + 0xc], eax
jl 0x40522b
mov ecx, dword [esp + 0xd2c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xd24]
call fcn.0040ff99
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4