Function at 0x40f090
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x645e1b
mov eax, dword fs:[0]
push eax
sub esp, 0x508
mov eax, dword [0x6bc858]
xor eax, esp
mov dword [esp + 0x500], eax
push ebx
push esi
push edi
mov eax, dword [0x6bc858]
xor eax, esp
push eax
lea eax, [esp + 0x518]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov ecx, dword [ebp + 0x10]
push ecx
push edx
push eax
call fcn.005ac7a0
mov edx, dword [edi]
mov dword [edi + 4], eax
mov eax, dword [edx + 0x10]
push 1
mov ecx, edi
call eax
xor ebx, ebx
push 0xff
lea ecx, [esp + 0x1a9]
push ebx
push ecx
mov byte [esp + 0x1b0], bl
call fcn.005ff630
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor edx, edx
add esp, 0xc
cmp edx, 0x6c4240
je 0x40f15e
lea eax, [esp + 0x1a4]
test eax, eax
je 0x40f15e
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 0x6c4240
push ebx
push 1
call esi
cmp eax, ebx
jle 0x40f15e
push ebx
push ebx
push eax
lea ecx, [esp + 0x1b0]
push ecx
push 0xffffffffffffffff
push 0x6c4240
push ebx
push 1
call esi
call fcn.00461c80
lea esi, [esp + 0x1a4]
mov eax, str.0.0.0.0
nop
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x40f190
cmp cl, bl
je 0x40f18c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x40f190
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40f170
xor eax, eax
jmp 0x40f195
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40f282
lea edx, [esp + 0x1a4]
push 0x675f5c
push edx
call fcn.005f4850
lea ecx, [esp + 0x1ac]
sub eax, ecx
add esp, 8
cmp eax, 3
jne 0x40f1f6
push eax
mov edx, ecx
push edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x20], bl
mov word [esp + 0x21], bx
mov byte [esp + 0x23], bl
call fcn.005f4940
lea ecx, [esp + 0x20]
add esp, 0xc
push ecx
call fcn.005f4900
add esp, 4
cmp eax, 0xa9
je 0x40f282
cmp dword [0x6c4a74], ebx
jne 0x40f282
cmp dword [edi + 0x248], ebx
jne 0x40f282
push 0xfc
call fcn.005f0fe0
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x520], ebx
cmp eax, ebx
je 0x40f22e
push eax
call fcn.00479940
jmp 0x40f230
xor eax, eax
push 0x86080000
mov dword [esp + 0x524], 0xffffffff
mov edx, dword [edi]
push ebx
mov dword [edi + 0x248], eax
mov esi, dword [eax]
mov eax, dword [edx + 0x4c]
push 0x70
push ebx
mov ecx, edi
call eax
mov ecx, dword [edi + 0x248]
mov edx, dword [esi + 0x168]
push eax
push 0x311
push 0x384
push ebx
push ebx
push 0x675878
call edx
mov ebx, dword [edi + 0x248]
call fcn.0047a2e0
xor ebx, ebx
push 8
call fcn.005f0fe0
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x520], 1
cmp esi, ebx
je 0x40f2b7
push 0x18
push 0x18
mov dword [esi], vtable.CXCImageList.0
call fcn.005ac1d0
mov dword [esi + 4], eax
mov ecx, esi
jmp 0x40f2b9
xor ecx, ecx
mov dword [esp + 0x520], 0xffffffff
mov dword [edi + 0x2c], ecx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0x66cf58
push 0xc1
call edx
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0x66cf58
push 0xc0
call edx
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0x66cf58
push 0xc2
call edx
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0x66cf58
push 0xbc
call edx
push 8
call fcn.005f0fe0
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x520], 2
cmp esi, ebx
je 0x40f349
push 0x19
push 0x4b
mov dword [esi], vtable.CXCImageList.0
call fcn.005ac1d0
mov dword [esi + 4], eax
mov ecx, esi
jmp 0x40f34b
xor ecx, ecx
mov dword [esp + 0x520], 0xffffffff
mov dword [edi + 0x3c], ecx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0x66cf58
push 0x104
call edx
mov ecx, dword [edi + 0x3c]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0x66cf58
push 0x103
call edx
mov ecx, dword [edi + 0x3c]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0x66cf58
push 0x105
call edx
xor eax, eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ebx
push 8
mov dword [esp + 0x524], 3
call fcn.005f0fe0
add esp, 4
cmp eax, ebx
je 0x410555
mov dword [esp + 0x84], eax
mov dword [eax + 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x84]
lea eax, [esp + 0x84]
mov dword [ecx], eax
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
mov esi, eax
mov dword [esp + 0x520], 4
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
cmp dword [esp + 0x9c], 0x10
mov eax, dword [esp + 0x88]
jae 0x40f448
lea eax, [esp + 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 1
push str.ad_start
push str.gateway
call esi
test eax, eax
je 0x40f501
cmp dword [esp + 0x9c], 0x10
mov eax, dword [esp + 0x88]
mov dword [esp + 0x64], 1
jae 0x40f485
lea eax, [esp + 0x88]
push eax
push 0xffffffffffffffff
push str.ad_start
push str.gateway
call esi
cmp eax, 0xffffffff
jne 0x40f4cd
cmp dword [esp + 0x9c], 0x10
mov eax, dword [esp + 0x88]
jae 0x40f4b1
lea eax, [esp + 0x88]
push eax
push 0x675d18
push str.ad_start
push str.gateway
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x6c5338]
mov eax, dword [edx + 0x280]
mov esi, dword [eax + 0x18]
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
mov edx, dword [esi + 0x20]
mov eax, dword [eax + 0xf4]
push edx
call eax
mov ecx, dword [esi + 0x54]
mov edx, dword [ecx]
mov eax, dword [edx + 0xf4]
push 0x682f98
call eax
jmp 0x40f539
mov ecx, dword [0x6c5338]
mov eax, dword [ecx + 0x280]
mov esi, dword [eax + 0x18]
mov ecx, dword [esi + 0x4c]
mov edx, dword [ecx]
mov eax, dword [esi + 0x24]
mov edx, dword [edx + 0xf4]
push eax
mov dword [esp + 0x68], ebx
call edx
mov esi, dword [esi + 0x54]
mov eax, dword [esi]
mov edx, dword [eax + 0xf4]
push 0x68308c
mov ecx, esi
call edx
push 8
call fcn.005f0fe0
add esp, 4
cmp eax, ebx
je 0x40f551
mov dword [eax], vtable.CXCStatic.0
mov ecx, eax
jmp 0x40f553
xor ecx, ecx
mov edx, dword [edi + 4]
push edx
mov edx, dword [ebp + 0x10]
push 0x12c
add edx, 0xffffffd0
push edx
mov edx, dword [esp + 0x8c]
add edx, 0xc
mov dword [edi + 0x34], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push edx
push 8
call eax
mov ecx, dword [edi + 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + 0xf4]
push 0x675d1c
call eax
mov ecx, dword [edi + 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + 0xdc]
push 0x383838
call eax
mov ecx, dword [edi + 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + 0xfc]
call eax
mov ecx, dword [edi + 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push 1
call eax
push 0xff
lea ecx, [esp + 0xa9]
push ebx
push ecx
mov byte [esp + 0xb0], bl
call fcn.005ff630
add esp, 0xc
push 0x1fe
lea eax, [esp + 0x2aa]
xor edx, edx
push ebx
push eax
mov word [esp + 0x2b0], dx
call fcn.005ff630
mov eax, dword [esp + 0x94]
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x9c], esi
jae 0x40f610
lea eax, [esp + 0x88]
push eax
push 0xff
lea ecx, [esp + 0xac]
push ecx
push 0x6745b6
push str.store_name
push str.gateway
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40f72c
cmp dword [0x6c585c], esi
mov esi, dword [0x6c5848]
jae 0x40f64e
mov esi, 0x6c5848
cmp esi, ebx
je 0x40f682
lea edx, [esp + 0x2a4]
test edx, edx
je 0x40f682
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jle 0x40f682
push eax
lea eax, [esp + 0x2a8]
push eax
push 0xffffffffffffffff
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x2a4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40f690
push ebx
push ebx
push ebx
sub eax, edx
push ebx
sar eax, 1
inc eax
push eax
lea ecx, [esp + 0x2b8]
push ecx
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x2a4]
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40f6c3
push ebx
push ebx
push eax
sub ecx, esi
sar ecx, 1
lea edx, [esp + 0xb0]
push edx
inc ecx
push ecx
lea eax, [esp + 0x2b8]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [esp + 0x9c], 0x10
mov eax, dword [esp + 0x88]
jae 0x40f70b
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0xa8]
push ecx
push str.store_name
push str.gateway
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40f78d
lea eax, [esp + 0xa4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f736
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
sub eax, edx
push ebx
inc eax
push eax
lea edx, [esp + 0xb0]
push edx
push ebx
push 0xfde9
call esi
lea ecx, [esp + 0xa4]
lea edx, [ecx + 1]
mov dword [esp + 0x14], edx
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x40f767
sub ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x2a8]
push eax
inc ecx
push ecx
lea ecx, [esp + 0xb0]
push ecx
push ebx
push 0xfde9
call esi
mov ecx, dword [edi + 0x34]
mov edx, dword [ecx]
mov edx, dword [edx + 0xb4]
lea eax, [esp + 0x74]
push eax
call edx
push 8
call fcn.005f0fe0
add esp, 4
cmp eax, ebx
je 0x40f7b7
mov dword [eax], vtable.CXCEdit.0
mov ecx, eax
jmp 0x40f7b9
xor ecx, ecx
mov edx, dword [edi + 4]
push edx
mov edx, dword [ebp + 0x10]
sub edx, dword [esp + 0x80]
push 0x18
sub edx, 0x3e
push edx
mov edx, dword [esp + 0x84]
add edx, 0xfffffffc
push edx
mov edx, dword [esp + 0x8c]
mov dword [edi + 0x38], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 8]
add edx, 0x12
push edx
call eax
mov ecx, dword [edi + 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 0xdc]
push 0x383838
call eax
mov ecx, dword [edi + 0x38]
mov edx, dword [ecx]
mov edx, dword [edx + 0x108]
lea eax, [esp + 0x2a4]
push eax
call edx
mov ecx, dword [edi + 0x38]
mov eax, dword [ecx]
mov eax, dword [eax + 0xb4]
lea edx, [esp + 0x74]
push edx
call eax
push 8
call fcn.005f0fe0
add esp, 4
cmp eax, ebx
je 0x40f83e
mov dword [eax], vtable.CXCRadioButton.0
mov ecx, eax
jmp 0x40f840
xor ecx, ecx
mov eax, dword [edi + 4]
push eax
mov eax, dword [esp + 0x7c]
push 0x18
push 0x18
push eax
mov eax, dword [esp + 0x8c]
mov dword [edi + 0x24], ecx
mov edx, dword [ecx]
mov edx, dword [edx + 8]
add eax, 8
push eax
call edx
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x130]
push 1
call edx
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x70]
push ebx
call edx
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x64]
push 1
call edx
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x68]
push ebx
call edx
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 3
call edx
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x40], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 1
call edx
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 1
call edx
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 2
call edx
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x58], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 2
call edx
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x48], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push ebx
call edx
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x54], eax
mov eax, dword [ecx]
push ebx
mov edx, dword [eax + 0xc]
call edx
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x108]
lea edx, [esp + 0x40]
push edx
call eax
push 8
call fcn.005f0fe0
add esp, 4
cmp eax, ebx
je 0x40f94d
mov dword [eax], vtable.CXCStatic.0
jmp 0x40f94f
xor eax, eax
mov ecx, dword [edi + 4]
push ecx
mov ecx, dword [esp + 0x84]
push 0x64
push 0x64
add ecx, 0xc
mov dword [edi + 0x18], eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
push ecx
push 0xa
mov ecx, eax
call edx
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0xf4]
push 0x675d38
call edx
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0xfc]
call edx
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push 1
call edx
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0xdc]
push 0x383838
call edx
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x88]
push ebx
call edx
cmp dword [esp + 0x9c], 0x10
mov eax, dword [esp + 0x88]
jae 0x40f9d3
lea eax, [esp + 0x88]
push eax
push 0xffffffffffffffff
push str.replay_ad
push str.gateway
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fa1e
cmp dword [esp + 0x9c], 0x10
lea esi, [eax + 0x10]
mov eax, dword [esp + 0x88]
jae 0x40fa08
lea eax, [esp + 0x88]
push eax
push 0x675d54
push str.replay_ad
push str.gateway
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [0x6c47ec], ebx
je 0x40fa73
mov eax, esi
shl eax, 4
sub eax, esi
add eax, eax
add eax, eax
add eax, eax
push eax
lea eax, [esp + 0x4a8]
push 0x675d58
push eax
call fcn.005f1060
sub esp, 0x14
lea edx, [esp + 0x4c4]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00412330
call fcn.0043f680
mov eax, dword [0x6c47ec]
cmp dword [eax + 0x184], ebx
je 0x40fa73
call fcn.004416c0
push esi
lea ecx, [esp + 0x2a8]
push 0x675d5c
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0xb4]
add esp, 0xc
lea eax, [esp + 0x74]
push eax
call edx
push 8
call fcn.005f0fe0
add esp, 4
cmp eax, ebx
je 0x40fab4
mov dword [eax], vtable.CXCEdit.0
mov ecx, eax
jmp 0x40fab6
xor ecx, ecx
mov edx, dword [edi + 4]
push edx
mov edx, dword [esp + 0x7c]
push 0x19
add edx, 0xfffffffc
push 0x32
push edx
mov edx, dword [esp + 0x8c]
mov dword [edi + 0x1c], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 8]
add edx, 4
push edx
call eax
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xdc]
push 0x383838
call eax
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x108]
lea eax, [esp + 0x2a4]
push eax
call edx
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xf0]
push 1
call edx
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x88]
push ebx
call edx
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xb4]
lea edx, [esp + 0x74]
push edx
call eax
push 8
call fcn.005f0fe0
add esp, 4
cmp eax, ebx
je 0x40fb49
mov dword [eax], vtable.CXCStatic.0
mov ecx, eax
jmp 0x40fb4b
xor ecx, ecx
mov eax, dword [edi + 4]
push eax
mov eax, dword [esp + 0x7c]
push 0x64
add eax, 4
push 0x64
push eax
mov eax, dword [esp + 0x8c]
mov dword [edi + 0x20], ecx
mov edx, dword [ecx]
mov edx, dword [edx + 8]
add eax, 4
push eax
call edx
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
mov edx, dword [eax + 0xf4]
push 0x675d64
call edx
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
mov edx, dword [eax + 0xfc]
call edx
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push 1
call edx
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
mov edx, dword [eax + 0xdc]
push 0x383838
call edx
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
mov edx, dword [eax + 0x88]
push ebx
call edx
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0xb4]
lea edx, [esp + 0x74]
push edx
call eax
push 8
call fcn.005f0fe0
add esp, 4
cmp eax, ebx
je 0x40fbe5
mov dword [eax], vtable.CXCRadioButton.0
mov ecx, eax
jmp 0x40fbe7
xor ecx, ecx
mov eax, dword [edi + 4]
push eax
mov eax, dword [esp + 0x7c]
push 0x18
add eax, 0xfffffffc
push 0x18
push eax
mov eax, dword [esp + 0x8c]
mov dword [edi + 0x250], ecx
mov edx, dword [ecx]
mov edx, dword [edx + 8]
add eax, 8
push eax
call edx
mov ecx, dword [edi + 0x250]
mov eax, dword [ecx]
mov edx, dword [eax + 0x130]
push 1
call edx
mov ecx, dword [edi + 0x250]
mov eax, dword [ecx]
mov edx, dword [eax + 0x70]
push ebx
call edx
mov ecx, dword [edi + 0x250]
mov eax, dword [ecx]
mov edx, dword [eax + 0x64]
push 1
call edx
mov ecx, dword [edi + 0x250]
mov eax, dword [ecx]
mov edx, dword [eax + 0x68]
push ebx
call edx
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 3
call edx
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x40], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 1
call edx
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 1
call edx
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 2
call edx
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x58], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 2
call edx
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x48], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push ebx
call edx
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x54], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push ebx
call edx
mov ecx, dword [edi + 0x250]
mov dword [esp + 0x44], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x108]
lea edx, [esp + 0x40]
push edx
call eax
mov ecx, dword [edi + 0x250]
mov edx, dword [ecx]
mov eax, dword [edx + 0x88]
push ebx
call eax
mov eax, dword [esp + 0x88]
mov esi, 0x10
cmp dword [esp + 0x9c], esi
jae 0x40fd20
lea eax, [esp + 0x88]
push eax
push 1
push str.local_ad
push str.gateway
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [edi + 0x44], eax
cmp eax, ebx
mov eax, dword [esp + 0x88]
jne 0x40fe34
cmp dword [esp + 0x9c], esi
jae 0x40fd55
lea eax, [esp + 0x88]
push eax
push 0xff
lea ecx, [esp + 0xac]
push ecx
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, [esp + 0xa4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40fd82
sub eax, edx
jne 0x40fdcb
xor edx, edx
cmp edx, str.http:__corpcorp.com_lg_login2.0.htm
je 0x40fe0d
lea eax, [esp + 0x2a4]
test eax, eax
je 0x40fe0d
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
push str.http:__corpcorp.com_lg_login2.0.htm
push ebx
push ebx
call esi
cmp eax, ebx
jle 0x40fe0d
push eax
lea ecx, [esp + 0x2a8]
push ecx
push 0xffffffffffffffff
push str.http:__corpcorp.com_lg_login2.0.htm
jmp 0x40fe09
lea edx, [esp + 0xa4]
test edx, edx
je 0x40fe0d
lea eax, [esp + 0x2a4]
test eax, eax
je 0x40fe0d
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
mov ecx, edx
push ecx
push ebx
push ebx
call esi
cmp eax, ebx
jle 0x40fe0d
push eax
lea edx, [esp + 0x2a8]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0xb0]
push eax
push ebx
push ebx
call esi
lea eax, [esp + 0x2a4]
mov edx, eax
mov ecx, edi
sub ecx, edx
lea edx, [ecx + 0x48]
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x40fe20
jmp 0x40ffe5
cmp dword [esp + 0x9c], esi
jae 0x40fe44
lea eax, [esp + 0x88]
push eax
push 0x675d18
push str.local_ad
push str.gateway
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
xor eax, eax
cmp eax, 0x6c4240
je 0x40fe9f
lea ecx, [esp + 0x1a4]
test ecx, ecx
je 0x40fe9f
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 0x6c4240
push ebx
push 1
call esi
cmp eax, ebx
jle 0x40fe9f
push ebx
push ebx
push eax
lea edx, [esp + 0x1b0]
push edx
push 0xffffffffffffffff
push 0x6c4240
push ebx
push 1
call esi
lea esi, [esp + 0x1a4]
mov eax, str.0.0.0.0
jmp 0x40feb0
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x40fed0
cmp cl, bl
je 0x40fecc
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x40fed0
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40feb0
xor eax, eax
jmp 0x40fed5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40ffe5
lea eax, [esp + 0x1a4]
push 0x675f5c
push eax
call fcn.005f4850
lea ecx, [esp + 0x1ac]
sub eax, ecx
add esp, 8
cmp eax, 3
jne 0x40ff36
push eax
mov edx, ecx
push edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x20], bl
mov word [esp + 0x21], bx
mov byte [esp + 0x23], bl
call fcn.005f4940
lea ecx, [esp + 0x20]
add esp, 0xc
push ecx
call fcn.005f4900
add esp, 4
cmp eax, 0xa9
je 0x40ffe5
mov eax, 0x6c4240
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ff40
sub eax, edx
sar eax, 1
je 0x40ffe5
push 0x6c4240
lea edx, [esp + 0x2a8]
push str.http:___s:28_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ebx, [esp + 0xa4]
lea esi, [esp + 0x2a4]
call fcn.004d1600
cmp dword [esp + 0x9c], 0x10
mov eax, dword [esp + 0x88]
jae 0x40ff9b
lea eax, [esp + 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
lea eax, [esp + 0xa8]
push eax
push str.wifi_url
push str.gateway
call esi
cmp dword [esp + 0x9c], 0x10
mov eax, dword [esp + 0x88]
jae 0x40ffce
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0xa8]
push ecx
push str.Preview_url
push str.gateway
call esi
xor ebx, ebx
push 8
call fcn.005f0fe0
add esp, 4
cmp eax, ebx
je 0x40fffd
mov dword [eax], vtable.CXCButton.0
mov ecx, eax
jmp 0x40ffff
xor ecx, ecx
mov eax, dword [edi + 4]
push eax
mov eax, dword [esp + 0x84]
push 0x31
add eax, 0x20
push 0x8c
push eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x28], ecx
mov edx, dword [ecx]
mov edx, dword [edx + 8]
add eax, 0xffffff6c
push eax
call edx
mov ecx, dword [edi + 0x28]
mov eax, dword [ecx]
mov edx, dword [eax + 0xdc]
push 0x383838
call edx
mov ecx, dword [edi + 0x28]
mov eax, dword [ecx]
mov edx, dword [eax + 0x70]
push ebx
call edx
mov ecx, dword [edi + 0x28]
mov eax, dword [ecx]
mov edx, dword [eax + 0x64]
push ebx
call edx
push ebx
push 0x66cf58
push 0x111
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.005663d0
push ebx
push 0x66cf58
push 0x118
mov dword [esp + 0x28], eax
call fcn.005663d0
push ebx
push 0x66cf58
push 0x118
mov dword [esp + 0x44], eax
call fcn.005663d0
push ebx
push 0x66cf58
push 0x113
mov dword [esp + 0x34], eax
call fcn.005663d0
push ebx
push 0x66cf58
push 0x113
mov dword [esp + 0x40], eax
call fcn.005663d0
push ebx
push 0x66cf58
push 0x111
mov dword [esp + 0x30], eax
call fcn.005663d0
push ebx
push 0x66cf58
push 0x111
mov dword [esp + 0x3c], eax
call fcn.005663d0
mov ecx, dword [edi + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x108]
lea edx, [esp + 0x1c]
push edx
call eax
mov ecx, dword [edi + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 0xb4]
lea eax, [esp + 0x74]
push eax
call edx
push 8
call fcn.005f0fe0
add esp, 4
cmp eax, ebx
je 0x41013c
mov dword [eax], vtable.CXCButton.0
mov ecx, eax
jmp 0x41013e
xor ecx, ecx
mov edx, dword [edi + 4]
push edx
mov edx, dword [esp + 0x7c]
push 0x31
push 0x8c
mov dword [edi + 0x40], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push edx
push 4
call eax
mov ecx, dword [edi + 0x40]
mov edx, dword [ecx]
mov eax, dword [edx + 0xdc]
push 0x383838
call eax
mov ecx, dword [edi + 0x40]
mov edx, dword [ecx]
mov eax, dword [edx + 0x70]
push ebx
call eax
mov ecx, dword [edi + 0x40]
mov edx, dword [ecx]
mov eax, dword [edx + 0x64]
push ebx
call eax
push ebx
push 0x66cf58
push pe_nt_image_headers32
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.005663d0
push ebx
push 0x66cf58
push 0x116
mov dword [esp + 0x28], eax
call fcn.005663d0
push ebx
push 0x66cf58
push 0x116
mov dword [esp + 0x44], eax
call fcn.005663d0
push ebx
push 0x66cf58
push 0x112
mov dword [esp + 0x34], eax
call fcn.005663d0
push ebx
push 0x66cf58
push 0x112
mov dword [esp + 0x40], eax
call fcn.005663d0
push ebx
push 0x66cf58
push pe_nt_image_headers32
mov dword [esp + 0x30], eax
call fcn.005663d0
push ebx
push 0x66cf58
push pe_nt_image_headers32
mov dword [esp + 0x3c], eax
call fcn.005663d0
mov ecx, dword [edi + 0x40]
mov dword [esp + 0x20], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x108]
lea eax, [esp + 0x1c]
push eax
call edx
push 8
call fcn.005f0fe0
add esp, 4
cmp eax, ebx
je 0x41025c
mov dword [eax], vtable.CXCEdit.0
mov ecx, eax
jmp 0x41025e
xor ecx, ecx
mov edx, dword [edi + 4]
push edx
mov edx, dword [ebp + 0x10]
push 0x14
add edx, 0xfffffff5
push edx
mov edx, dword [esp + 0x8c]
add edx, 0x20
mov dword [edi + 0x10], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push edx
push 3
call eax
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x108]
push 0x675de4
call eax
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push 1
call eax
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x70]
push ebx
call eax
mov ecx, dword [edi + 0x10]
mov esi, dword [ecx]
push ebx
push ebx
push ebx
push 1
push 0xc
push 0x675df0
call fcn.0059ee50
mov ecx, dword [edi + 0x10]
mov edx, dword [esi + 0x1c]
push eax
call edx
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0xb4]
lea edx, [esp + 0x74]
push edx
call eax
push 0x10
call fcn.005f0fe0
add esp, 4
cmp eax, ebx
je 0x4102ff
mov ecx, 1
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax], vtable.CXCRichEdit.0
mov ecx, eax
jmp 0x410301
xor ecx, ecx
mov eax, dword [edi + 4]
push eax
mov eax, dword [ebp + 0x10]
push 0x64
add eax, 0xffffffee
push eax
mov eax, dword [esp + 0x8c]
add eax, 8
mov dword [edi + 0x14], ecx
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push eax
push 0xa
call edx
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push 1
call edx
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x70]
push ebx
call edx
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1bc]
push 1
call edx
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1b8]
push 0x19
call edx
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1a8]
push 0x675df8
call edx
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0xb4]
lea edx, [esp + 0x74]
push edx
call eax
mov ecx, dword [edi + 0x38]
mov edx, dword [ecx]
mov esi, dword [esp + 0x64]
mov eax, dword [edx + 0x60]
push esi
call eax
mov ecx, dword [edi + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
push esi
call eax
mov ecx, dword [edi + 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 0x80]
push ebx
call eax
mov ecx, dword [edi + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x80]
push ebx
call eax
mov esi, dword [edi + 4]
push 8
call fcn.0059bd90
push eax
push 0x40edc0
push ebx
push esi
mov dword [eax], edi
mov dword [eax + 4], fcn.00411040
call fcn.00578050
mov ecx, dword [edi + 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov esi, eax
push 8
call fcn.0059bd90
push eax
push 0x40edc0
push 7
push esi
mov dword [eax], edi
mov dword [eax + 4], 0x411a60
call fcn.00578050
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
push 8
mov esi, eax
call fcn.0059bd90
push eax
push 0x40edc0
push 0x52
push esi
mov dword [eax], edi
mov dword [eax + 4], 0x411ab0
call fcn.00578050
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
push 8
mov esi, eax
call fcn.0059bd90
push eax
push 0x40edc0
push 5
push esi
mov dword [eax], edi
mov dword [eax + 4], 0x411b80
call fcn.00578050
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
push 8
mov esi, eax
call fcn.0059bd90
push eax
push 0x40edc0
push 7
push esi
mov dword [eax], edi
mov dword [eax + 4], 0x411d60
call fcn.00578050
mov edx, dword [edi]
mov eax, dword [edx + 0x50]
mov ecx, edi
call eax
push 8
mov esi, eax
call fcn.0059bd90
push eax
push 0x40edc0
push 0x13a7
push esi
mov dword [eax], edi
mov dword [eax + 4], 0x411e40
call fcn.00583470
call fcn.0047f650
call fcn.00410c40
cmp dword [esp + 0x9c], 0x10
mov edi, dword [edi + 4]
jb 0x4104cf
mov ecx, dword [esp + 0x88]
push ecx
call fcn.005f0cb0
add esp, 4
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
lea ecx, [esp + 0x84]
mov dword [esp + 0x520], 5
call fcn.0040ed70
mov edx, dword [esp + 0x84]
push edx
call fcn.005f0cb0
add esp, 4
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], ebx
mov dword [esp + 0x520], 0xffffffff
call fcn.0040ed70
mov eax, edi
mov ecx, dword [esp + 0x518]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x500]
xor ecx, esp
call fcn.005f0da0
mov esp, ebp
pop ebp
ret 0x14
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x1c], ebx
call fcn.005f41f0
push 0x6a361c
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x70], vtable.std::bad_alloc.0
call fcn.006009e0
int3