Function at 0x406280
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7b7d
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x4fbf50]
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 esi, dword [ebp + 8]
xor ebx, ebx
add esi, 0x108
mov eax, esi
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x1c4], ebx
mov dword [ebp - 0xd0], 0xf
mov dword [ebp - 0xd4], ebx
mov byte [ebp - 0xe4], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4062e0
sub eax, edi
push eax
push esi
lea ecx, [ebp - 0xe4]
call fcn.00403920
mov dword [ebp - 4], ebx
push 6
mov edi, 0xf
push str.GB2312
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 0x190], edi
mov dword [ebp - 0x194], ebx
mov byte [ebp - 0x1a4], bl
call fcn.00403920
lea edx, [ebp - 0x1a4]
push edx
lea ecx, [ebp - 0xe4]
lea esi, [ebp - 0x100]
mov byte [ebp - 4], 1
call fcn.0040d370
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x406349
mov eax, dword [eax]
lea ecx, [ebp - 0x180]
xor edx, edx
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x184]
mov dword [ebp - 0x184], ecx
mov word [ebp - 0x180], dx
call fcn.004083b0
cmp dword [ebp - 0xec], 8
jb 0x406386
mov eax, dword [ebp - 0x100]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xec], 7
mov dword [ebp - 0xf0], ebx
mov word [ebp - 0x100], cx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x190], 0x10
jb 0x4063bc
mov edx, dword [ebp - 0x1a4]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x194], ebx
mov byte [ebp - 0x1a4], bl
push str.Data_version.ini
lea ebx, [ebp - 0x184]
mov dword [ebp - 0x190], edi
call fcn.00408260
push 6
xor ebx, ebx
push str.GB2312
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x1ac], edi
mov dword [ebp - 0x1b0], ebx
mov byte [ebp - 0x1c0], bl
call fcn.00403920
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x184]
xor eax, eax
mov word [ebp - 0x90], ax
mov eax, edx
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], ebx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406426
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x90]
call fcn.00403c20
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x1c0]
lea ebx, [ebp - 0xac]
mov byte [ebp - 4], 5
call fcn.0040d2a0
mov esi, 0x10
add esp, 4
cmp dword [eax + 0x14], esi
jb 0x40646d
mov eax, dword [eax]
push eax
push 0x63
lea edx, [ebp - 0x74]
push edx
push 0x4ed91c
push str.ver2
push str.appver
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp dword [ebp - 0x98], esi
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x4064a3
mov eax, dword [ebp - 0xac]
push eax
call esi
add esp, 4
xor ebx, ebx
cmp dword [ebp - 0x7c], 8
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 0xac], bl
jb 0x4064c9
mov ecx, dword [ebp - 0x90]
push ecx
call esi
add esp, 4
xor edx, edx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1ac], 0x10
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], ebx
mov word [ebp - 0x90], dx
jb 0x4064f5
mov eax, dword [ebp - 0x1c0]
push eax
call esi
add esp, 4
lea eax, [ebp - 0x74]
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb8], ebx
mov byte [ebp - 0xc8], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406510
sub eax, edx
push eax
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0xc8]
call fcn.00403920
mov byte [ebp - 4], 6
push 6
push str.GB2312
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], ebx
mov byte [ebp - 0x90], bl
call fcn.00403920
lea edx, [ebp - 0x90]
push edx
lea ecx, [ebp - 0xc8]
lea esi, [ebp - 0xac]
mov byte [ebp - 4], 7
call fcn.0040d370
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x406572
mov eax, dword [eax]
mov esi, dword [ebp - 0x188]
lea ecx, [esi + 4]
xor edx, edx
push eax
or eax, 0xffffffff
mov dword [esi], ecx
mov word [ecx], dx
call fcn.004083b0
cmp dword [ebp - 0x98], 8
jb 0x4065a4
mov eax, dword [ebp - 0xac]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x7c], 0x10
mov dword [ebp - 0x98], 7
mov dword [ebp - 0x9c], ebx
mov word [ebp - 0xac], cx
jb 0x4065d3
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0xb4], 0x10
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], ebx
mov byte [ebp - 0x90], bl
jb 0x4065f8
mov eax, dword [ebp - 0xc8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x184]
lea ecx, [ebp - 0x180]
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb8], ebx
mov byte [ebp - 0xc8], bl
cmp eax, ecx
je 0x406624
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
cmp dword [ebp - 0xd0], 0x10
jb 0x40663d
mov edx, dword [ebp - 0xe4]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
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.004b7299
mov esp, ebp
pop ebp
ret 4