Function at 0x403800
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413a0c
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x41a024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x30c], ebx
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
lea eax, [ebx + 0x14]
push 0xb
mov dword [ebp - 4], edi
push str.BoxNews.exe
push eax
mov dword [ebx + 0x10], eax
mov byte [eax], 0
call fcn.00409005
mov eax, dword [ebx + 0x10]
mov byte [eax + 0xb], 0
lea esi, [ebx + 0x54]
lea eax, [esi + 4]
push edi
push 0x417c2e
push eax
mov dword [esi], eax
mov byte [eax], 0
call fcn.00409005
mov ecx, dword [esi]
add esp, 0x18
mov byte [ecx], 0
lea eax, [ebx + 0x9c]
mov dword [ebx + 0x98], eax
mov byte [eax], 0
lea eax, [ebx + 0xe0]
mov dword [ebx + 0xdc], eax
mov byte [eax], 0
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 4
call fcn.004023f0
mov byte [ebp - 4], 5
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
call fcn.00401c50
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c0]
lea edx, [ebp - 0x2bc]
cmp eax, edx
je 0x4038d8
push eax
call fcn.00408302
add esp, 4
push 0x417c2e
mov ecx, 0x417cb0
mov edi, esi
call fcn.00401e30
mov ecx, dword [esi]
lea eax, [ebp - 0x300]
mov dword [ebp - 0x304], eax
mov byte [ebp - 0x300], 0
mov esi, ecx
test ecx, ecx
jne 0x403909
mov esi, 0x417c2e
mov edi, esi
lea edx, [edi + 1]
mov edi, edi
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x403910
sub edi, edx
cmp edi, 0x3f
jl 0x40393c
lea eax, [edi + 1]
push eax
push 0
mov dword [ebp - 0x304], 0
call fcn.00409221
add esp, 8
mov dword [ebp - 0x304], eax
push edi
push esi
push eax
call fcn.00409005
mov ecx, dword [ebp - 0x304]
add esp, 0xc
mov byte [edi + ecx], 0
push 0x417c30
lea eax, [ebp - 0x304]
mov byte [ebp - 4], 6
call fcn.00401b50
push 0x64
lea edx, [ebp - 0x74]
push 0
push edx
call fcn.0040bf50
mov eax, dword [ebp - 0x304]
add esp, 0xc
push eax
push 0x64
lea ecx, [ebp - 0x74]
push ecx
push str.BoxNews.exe
push str.RunSetup
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x74]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4039a0
sub eax, edx
mov edi, eax
cmp edi, 0x3f
jge 0x4039c8
mov eax, dword [ebx + 0x10]
lea esi, [ebx + 0x14]
cmp eax, esi
je 0x403a05
push eax
call fcn.00408302
add esp, 4
mov dword [ebx + 0x10], esi
jmp 0x403a05
mov edx, dword [ebx + 0x10]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4039d0
sub eax, esi
cmp edi, eax
jg 0x4039e4
lea eax, [ebx + 0x14]
cmp edx, eax
jne 0x403a05
lea ecx, [ebx + 0x14]
cmp edx, ecx
jne 0x4039f2
mov dword [ebx + 0x10], 0
mov eax, dword [ebx + 0x10]
lea edx, [edi + 1]
push edx
push eax
call fcn.00409221
add esp, 8
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x10]
push edi
lea ecx, [ebp - 0x74]
push ecx
push eax
call fcn.00409005
mov edx, dword [ebx + 0x10]
push 0x103
lea eax, [ebp - 0x27b]
push 0
mov byte [edi + edx], 0
push eax
mov byte [ebp - 0x27c], 0
call fcn.0040bf50
mov ecx, dword [ebp - 0x304]
add esp, 0x18
push ecx
push 0x104
lea edx, [ebp - 0x27c]
push edx
push 0x417c2e
push str.RName
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x27c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403a68
sub eax, edx
je 0x403b45
xor eax, eax
lea ecx, [ebp - 0x27c]
cmp byte [ebp - 0x27c], al
je 0x403a97
xor byte [ecx], al
inc eax
inc ecx
cmp eax, 5
jne 0x403a92
xor eax, eax
cmp byte [ecx], 0
jne 0x403a87
lea eax, [ebp - 0x27c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403aa0
sub eax, edx
mov edi, eax
cmp edi, 0x3f
jge 0x403ad1
mov eax, dword [ebx + 0x98]
lea esi, [ebx + 0x9c]
cmp eax, esi
je 0x403b24
push eax
call fcn.00408302
add esp, 4
mov dword [ebx + 0x98], esi
jmp 0x403b24
mov edx, dword [ebx + 0x98]
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403ae0
sub eax, esi
cmp edi, eax
jg 0x403af7
lea eax, [ebx + 0x9c]
cmp edx, eax
jne 0x403b24
lea ecx, [ebx + 0x9c]
cmp edx, ecx
jne 0x403b0b
mov dword [ebx + 0x98], 0
mov eax, dword [ebx + 0x98]
lea edx, [edi + 1]
push edx
push eax
call fcn.00409221
add esp, 8
mov dword [ebx + 0x98], eax
mov eax, dword [ebx + 0x98]
push edi
lea ecx, [ebp - 0x27c]
push ecx
push eax
call fcn.00409005
mov edx, dword [ebx + 0x98]
add esp, 0xc
mov byte [edi + edx], 0
push 0x103
lea eax, [ebp - 0x177]
push 0
push eax
mov byte [ebp - 0x178], 0
call fcn.0040bf50
mov ecx, dword [ebp - 0x304]
add esp, 0xc
push ecx
push 0x104
lea edx, [ebp - 0x178]
push edx
push 0x417c2e
push str.RName2
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x178]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403b93
sub eax, edx
je 0x403c75
xor eax, eax
lea ecx, [ebp - 0x178]
cmp byte [ebp - 0x178], al
je 0x403bc2
xor byte [ecx], al
inc eax
inc ecx
cmp eax, 5
jne 0x403bbd
xor eax, eax
cmp byte [ecx], 0
jne 0x403bb2
lea eax, [ebp - 0x178]
lea edx, [eax + 1]
jmp 0x403bd0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403bd0
sub eax, edx
mov esi, eax
cmp esi, 0x3f
jge 0x403c01
mov eax, dword [ebx + 0xdc]
lea edi, [ebx + 0xe0]
cmp eax, edi
je 0x403c54
push eax
call fcn.00408302
add esp, 4
mov dword [ebx + 0xdc], edi
jmp 0x403c54
mov edx, dword [ebx + 0xdc]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403c10
sub eax, edi
cmp esi, eax
jg 0x403c27
lea eax, [ebx + 0xe0]
cmp edx, eax
jne 0x403c54
lea ecx, [ebx + 0xe0]
cmp edx, ecx
jne 0x403c3b
mov dword [ebx + 0xdc], 0
mov eax, dword [ebx + 0xdc]
lea edx, [esi + 1]
push edx
push eax
call fcn.00409221
add esp, 8
mov dword [ebx + 0xdc], eax
mov eax, dword [ebx + 0xdc]
push esi
lea ecx, [ebp - 0x178]
push ecx
push eax
call fcn.00409005
mov edx, dword [ebx + 0xdc]
add esp, 0xc
mov byte [esi + edx], 0
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push eax
push ecx
lea eax, [ebp - 0x308]
push eax
push ebx
call fcn.004032c0
lea ecx, [ebp - 0x2bc]
push 0xd
mov edx, ecx
push str.SysConfig.ini
push edx
mov dword [ebp - 0x2c0], ecx
mov byte [ebp - 0x2bc], 0
call fcn.00409005
mov eax, dword [ebp - 0x2c0]
add esp, 0xc
mov byte [eax + 0xd], 0
lea ecx, [ebp - 0x2c0]
push ecx
mov edi, ebx
mov byte [ebp - 4], 7
call fcn.00404050
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2c0]
lea edx, [ebp - 0x2bc]
cmp eax, edx
je 0x403ce7
push eax
call fcn.00408302
add esp, 4
lea eax, [ebp - 0x2bc]
push 8
mov ecx, eax
push 0x417bb0
push ecx
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 0x2bc], 0
call fcn.00409005
mov edx, dword [ebp - 0x2c0]
add esp, 0xc
mov byte [edx + 8], 0
lea eax, [ebp - 0x2c0]
push eax
mov edi, ebx
mov byte [ebp - 4], 8
call fcn.00404050
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x2bc]
cmp eax, ecx
je 0x403d45
push eax
call fcn.00408302
add esp, 4
lea edx, [ebp - 0x2bc]
push 9
mov eax, edx
push 0x417e00
push eax
mov dword [ebp - 0x2c0], edx
mov byte [ebp - 0x2bc], 0
call fcn.00409005
mov ecx, dword [ebp - 0x2c0]
add esp, 0xc
mov byte [ecx + 9], 0
lea edx, [ebp - 0x2c0]
push edx
mov edi, ebx
mov byte [ebp - 4], 9
call fcn.00404050
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x2bc]
cmp eax, ecx
je 0x403da3
push eax
call fcn.00408302
add esp, 4
lea edx, [ebp - 0x2bc]
push 6
mov eax, edx
push 0x417e0c
push eax
mov dword [ebp - 0x2c0], edx
mov byte [ebp - 0x2bc], 0
call fcn.00409005
mov ecx, dword [ebp - 0x2c0]
add esp, 0xc
mov byte [ecx + 6], 0
lea edx, [ebp - 0x2c0]
push edx
mov edi, ebx
mov byte [ebp - 4], 0xa
call fcn.00404050
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x2bc]
cmp eax, ecx
je 0x403e01
push eax
call fcn.00408302
add esp, 4
lea edx, [ebp - 0x2bc]
push 9
mov eax, edx
push 0x417bc8
push eax
mov dword [ebp - 0x2c0], edx
mov byte [ebp - 0x2bc], 0
call fcn.00409005
mov ecx, dword [ebp - 0x2c0]
add esp, 0xc
mov byte [ecx + 9], 0
lea edx, [ebp - 0x2c0]
push edx
mov edi, ebx
mov byte [ebp - 4], 0xb
call fcn.00404050
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x2bc]
cmp eax, ecx
je 0x403e5f
push eax
call fcn.00408302
add esp, 4
mov ecx, dword [ebx + 0x10]
lea eax, [ebp - 0x2bc]
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 0x2bc], 0
mov esi, ecx
test ecx, ecx
jne 0x403e80
mov esi, 0x417c2e
mov ecx, esi
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x403e85
sub ecx, edi
mov edi, ecx
cmp edi, 0x3f
jl 0x403eb3
lea edx, [edi + 1]
push edx
push 0
mov dword [ebp - 0x2c0], 0
call fcn.00409221
add esp, 8
mov dword [ebp - 0x2c0], eax
push edi
push esi
push eax
call fcn.00409005
mov eax, dword [ebp - 0x2c0]
add esp, 0xc
mov byte [edi + eax], 0
lea ecx, [ebp - 0x2c0]
push ecx
mov edi, ebx
mov byte [ebp - 4], 0xc
call fcn.00404050
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2c0]
lea edx, [ebp - 0x2bc]
cmp eax, edx
je 0x403ef7
push eax
call fcn.00408302
add esp, 4
lea eax, [ebp - 0x2bc]
push 5
mov ecx, eax
push str.Data_
push ecx
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 0x2bc], 0
call fcn.00409005
mov edx, dword [ebp - 0x2c0]
add esp, 0xc
mov byte [edx + 5], 0
lea eax, [ebp - 0x2c0]
push eax
mov edi, ebx
mov byte [ebp - 4], 0xd
call fcn.00404050
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x2bc]
cmp eax, ecx
je 0x403f55
push eax
call fcn.00408302
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x304]
lea edx, [ebp - 0x300]
cmp eax, edx
je 0x403f72
push eax
call fcn.00408302
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 - 0x10]
xor ecx, ebp
call fcn.004082f3
mov esp, ebp
pop ebp
ret 4