Function at 0x402750
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41276b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7b8
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x24b]
mov byte [ebp - 0x24c], 0
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x7c4]
mov dword [ebp - 0x10], esp
stosb byte es:[edi], al
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call fcn.00401000
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x34f]
mov byte [ebp - 0x350], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x147]
mov byte [ebp - 0x148], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x350]
push 0x104
push eax
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x350]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [ebp - 0x350]
push 0x104
lea eax, [ebp - 0x148]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x148]
push 0x41d3b4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x350]
push edx
push str.DataDir___s_n
push 1
call fcn.00404a50
lea eax, [ebp - 0x14]
or ebx, 0xffffffff
push eax
mov edi, 0x41d064
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x14], esi
push ecx
push 0x41d064
call fcn.00402d30
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0x1c
lea edx, [ebp - 0x148]
push edx
call edi
test eax, eax
jne 0x40289f
push 0x41d37c
push 1
call fcn.00404a50
push 0x41d36c
push 3
call fcn.00409140
add esp, 0x10
mov dword [ebp - 4], ebx
jmp 0x402b73
lea eax, [ebp - 0x148]
push str.UIConfig.dat
lea ecx, [ebp - 0x24c]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea edx, [ebp - 0x24c]
push edx
call edi
test eax, eax
jne 0x4028ef
lea eax, [ebp - 0x24c]
push eax
push 0x41d350
push 1
call fcn.00404a50
push 0x41d340
push 3
call fcn.00409140
add esp, 0x14
mov dword [ebp - 4], ebx
jmp 0x402b73
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x24c]
push edx
push eax
mov byte [ebp - 4], 1
call fcn.00405060
add esp, 0xc
cmp eax, esi
jne 0x402923
lea ecx, [ebp - 0x3c]
push 0x41a328
push ecx
mov dword [ebp - 0x3c], 0x41d328
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp - 0x18]
push edx
push str.Raw_:__s_n
push esi
call fcn.00404a50
mov eax, dword [ebp - 0x20]
add esp, 0xc
cmp eax, esi
je 0x402b8f
test al, 0xf
jne 0x402b8f
mov ecx, dword [ebp - 0x18]
dec eax
cmp byte [eax + ecx], 0x2a
jne 0x402958
mov byte [eax + ecx], 0
jmp 0x402948
lea eax, [ebp - 0x1c]
push eax
push ecx
call fcn.00402bd0
mov edi, eax
mov eax, dword [ebp - 0x1c]
add esp, 8
cmp eax, esi
mov dword [ebp - 0x38], edi
jne 0x402986
lea ecx, [ebp - 0x40]
push 0x41a328
push ecx
mov dword [ebp - 0x40], str.Base64
call sub.MSVCRT.dll__CxxThrowException
push edi
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebx, eax
lea ecx, [ebp - 0x7c4]
mov dword [ebp - 0x28], ebx
push 0x10
push 0x10
push str.__NNi243984_
push str.wowconfigdefines
call fcn.00401dd0
mov edx, dword [ebp - 0x1c]
push 1
push edi
push ebx
push edx
lea ecx, [ebp - 0x7c4]
call fcn.004023a0
xor ecx, ecx
xor eax, eax
mov cl, byte [edi + ebx - 1]
push ebx
sub edi, ecx
mov edx, ecx
add edi, ebx
push str.Final_:__s_n
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 1
and ecx, 3
rep stosb byte es:[edi], al
call fcn.00404a50
mov ecx, dword [ebx]
mov eax, str.CONF
add esp, 0xc
cmp ecx, dword [eax]
je 0x402a0a
lea edx, [ebp - 0x2c]
push 0x41a328
push edx
mov dword [ebp - 0x2c], 0x41d2b8
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebx + 4]
push eax
call fcn.004031f0
mov ebx, eax
cmp ebx, esi
jne 0x402a2e
lea eax, [ebp - 0x34]
push 0x41a328
push eax
mov dword [ebp - 0x34], str.cJSON_Parse_error
call sub.MSVCRT.dll__CxxThrowException
push str.appname
push ebx
call fcn.00404710
push str.apptitle
push ebx
mov esi, eax
call fcn.00404710
push str.apphomepage
push ebx
mov edi, eax
call fcn.00404710
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x24], eax
push ecx
push str.appname____:__s_n
push 1
call fcn.00404a50
mov edx, dword [edi + 0x10]
add esp, 0xc
push edx
push str.apptitle___:__s_n
push 1
call fcn.00404a50
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov ecx, dword [eax + 0x10]
push ecx
push str.apphomepage:__s_n
push 1
call fcn.00404a50
mov edx, dword [esi + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
push 0x18
push edx
push 0x41d064
call esi
mov eax, dword [edi + 0x10]
push 0x20
push eax
push 0x41d07c
call esi
mov ecx, dword [ebp - 0x24]
push 0x100
mov edx, dword [ecx + 0x10]
push edx
push str.http:__106.15.183.123_wow_
call esi
lea eax, [ebp - 0x14]
mov edi, 0x41d064
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41d064
call fcn.00402d30
mov eax, dword [ebp - 0x38]
add esp, 0x30
test eax, eax
jle 0x402b28
mov ecx, dword [ebp - 0x14]
push 0x40
push ecx
push 0x41fb8c
call esi
mov edx, dword [ebp - 0x14]
add esp, 0xc
push 0x40
push 0x41fbcc
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x41fbcc
push str.Base64_UserAgent____s__n
push 1
call fcn.00404ab0
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push ebx
call fcn.00402f20
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x402b4c
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x402b5c
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x402b6c
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c4]
call fcn.00401040
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x30]
push 0x41a328
push ecx
mov dword [ebp - 0x30], 0x41d1f4
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp - 0x44]
push esi
push str.ReadUIConfig_Exception_:__s_n
push 3
call fcn.00404a50
push esi
push 0x41d1c0
push 3
call fcn.00409140
add esp, 0x18
mov eax, 0x402b3b
ret