Function at 0x410580
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x643acd
mov eax, dword fs:[0]
push eax
sub esp, 0x37c
mov eax, dword [0x6bc858]
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
xor ebx, ebx
mov dword [ebp - 0x330], ebx
push 8
mov dword [ebp - 4], ebx
call fcn.005f0fe0
add esp, 4
cmp eax, ebx
je 0x410872
mov dword [ebp - 0x330], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x330]
lea eax, [ebp - 0x330]
mov dword [ecx], eax
mov dword [ebp - 0x318], 0xf
mov dword [ebp - 0x31c], ebx
mov byte [ebp - 0x32c], bl
mov esi, eax
mov dword [ebp - 4], 1
call fcn.004c4b60
push 7
push 0x675cf4
mov ecx, esi
call fcn.00412ae0
push 6
push str.AD.ini
mov ecx, esi
call fcn.00412ae0
push 0xff
lea edx, [ebp - 0x10f]
push ebx
push edx
mov byte [ebp - 0x110], bl
call fcn.005ff630
push 0x1fe
lea ecx, [ebp - 0x30e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x310], ax
call fcn.005ff630
mov eax, dword [ebp - 0x32c]
mov esi, 0x10
add esp, 0x18
cmp dword [ebp - 0x318], esi
jae 0x410677
lea eax, [ebp - 0x32c]
push eax
push 0xff
lea edx, [ebp - 0x110]
push edx
push str.http:__corpcorp.com_lg_login2.0.htm
push str.wifi_url
push str.gateway
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x350]
call fcn.00412330
mov edi, eax
push str.http:__corpcorp.com_lg_login2.0.htm
lea ecx, [ebp - 0x370]
mov byte [ebp - 4], 2
call fcn.00412330
mov ebx, eax
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x14]
cmp dword [edi + 0x18], esi
jb 0x4106d4
mov edi, dword [edi + 4]
jmp 0x4106d7
add edi, 4
push edi
mov edi, eax
mov eax, dword [ebx + 0x14]
call fcn.004127d0
test eax, eax
setne byte [ebp - 0x371]
cmp dword [ebp - 0x358], esi
jb 0x410702
mov ecx, dword [ebp - 0x36c]
push ecx
call fcn.005f0cb0
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [ebp - 0x358], edi
mov dword [ebp - 0x35c], ebx
mov byte [ebp - 0x36c], bl
lea ecx, [ebp - 0x370]
mov byte [ebp - 4], 4
call fcn.0040ed70
mov edx, dword [ebp - 0x370]
push edx
call fcn.005f0cb0
add esp, 4
lea ecx, [ebp - 0x370]
mov dword [ebp - 0x370], ebx
mov byte [ebp - 4], 2
call fcn.0040ed70
cmp dword [ebp - 0x338], esi
jb 0x410765
mov eax, dword [ebp - 0x34c]
push eax
call fcn.005f0cb0
add esp, 4
mov dword [ebp - 0x338], edi
mov dword [ebp - 0x33c], ebx
mov byte [ebp - 0x34c], bl
lea ecx, [ebp - 0x350]
mov byte [ebp - 4], 5
call fcn.0040ed70
mov ecx, dword [ebp - 0x350]
push ecx
call fcn.005f0cb0
add esp, 4
lea ecx, [ebp - 0x350]
mov dword [ebp - 0x350], ebx
mov byte [ebp - 4], 1
call fcn.0040ed70
cmp byte [ebp - 0x371], bl
je 0x4107f0
lea edx, [ebp - 0x110]
test edx, edx
je 0x4107f0
lea eax, [ebp - 0x310]
test eax, eax
je 0x4107f0
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
mov ecx, edx
push ecx
push ebx
push ebx
call edi
cmp eax, ebx
jle 0x4107f0
push eax
lea edx, [ebp - 0x310]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x110]
push eax
push ebx
push ebx
call edi
cmp dword [ebp - 0x318], esi
jb 0x410807
mov ecx, dword [ebp - 0x32c]
push ecx
call fcn.005f0cb0
add esp, 4
mov dword [ebp - 0x318], 0xf
mov dword [ebp - 0x31c], ebx
mov byte [ebp - 0x32c], bl
lea ecx, [ebp - 0x330]
mov dword [ebp - 4], 6
call fcn.0040ed70
mov edx, dword [ebp - 0x330]
push edx
call fcn.005f0cb0
add esp, 4
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x330], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.0040ed70
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.005f0da0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x378]
push eax
lea ecx, [ebp - 0x384]
mov dword [ebp - 0x378], ebx
call fcn.005f41f0
push 0x6a361c
lea ecx, [ebp - 0x384]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.006009e0
int3