Function at 0x401d40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40db70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x558
mov eax, dword [0x4111a4]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov esi, 0xf
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x158], bl
mov ecx, esi
lea edi, [ebp - 0x157]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x36c]
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x52d], 1
stosb byte es:[edi], al
call fcn.00402df0
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea ecx, [ebp - 0x36c]
mov byte [ebp - 4], 1
call fcn.00403090
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x30]
call fcn.004012d0
push 0xd
push str.PetConfig.ini
lea ecx, [ebp - 0x30]
call fcn.004014b0
mov eax, dword [ebp - 0x18]
mov edi, 0x10
cmp eax, edi
mov eax, dword [ebp - 0x2c]
jae 0x401de2
lea eax, [ebp - 0x2c]
push eax
push 0x1f
lea eax, [ebp - 0x158]
push eax
push 0x40e340
push str.app_type
push str.KwPetIns
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp dword [ebp - 0x18], edi
jb 0x401e12
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0040627d
add esp, 4
lea ecx, [ebp - 0x36c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], 0xffffffff
call fcn.00402d80
mov edi, str.gameBox
lea esi, [ebp - 0x158]
mov ecx, 8
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401e48
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x401e7d
mov edi, str.game
lea esi, [ebp - 0x158]
mov ecx, 5
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401e67
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x401e7d
mov ecx, 9
mov esi, str.KuWo_KwPet_2010_11_11_Install_VS2003
lea edi, [ebp - 0x158]
jmp 0x401e93
mov ecx, 0xa
mov esi, str.KuWo_KwGameBox_2011_03_14_Install_VS2003
lea edi, [ebp - 0x158]
mov byte [ebp - 0x52d], bl
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x158]
push edx
lea ecx, [ebp - 0xc0]
movsb byte es:[edi], byte [esi]
call fcn.00405850
lea ecx, [ebp - 0x548]
mov dword [ebp - 4], 2
mov dword [ebp - 0x538], ebx
mov dword [ebp - 0x534], ebx
call fcn.004042a0
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 3
call fcn.004057c0
test al, al
jne 0x402097
lea ecx, [ebp - 0x238]
call fcn.00404f80
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 5
call fcn.004055a0
lea ecx, [ebp - 0x548]
mov dword [ebp - 4], 4
call fcn.00405990
lea ecx, [ebp - 0x238]
call fcn.00404c20
push eax
lea ecx, [ebp - 0x238]
call fcn.00404c40
lea ecx, [ebp - 0x238]
push eax
call fcn.00404c30
push eax
lea ecx, [ebp - 0x238]
call fcn.00404c00
push eax
lea ecx, [ebp - 0x548]
call fcn.00405b60
test eax, eax
je 0x401faf
lea ecx, [ebp - 0x548]
call fcn.00405a60
lea ecx, [ebp - 0x548]
mov esi, eax
call fcn.00405a70
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x238]
mov edi, eax
call fcn.00404e60
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 8
jb 0x401f84
mov eax, dword [eax + 4]
jmp 0x401f87
add eax, 4
push eax
push edi
push esi
push str.errcode_derrcodeext_dparam_s
call fcn.00403570
mov eax, dword [ebp - 0x18]
add esp, 0x10
cmp eax, 0x10
mov byte [ebp - 4], 4
jb 0x401faf
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0040627d
add esp, 4
lea ecx, [ebp - 0x548]
call fcn.00405a00
push str.Kuwo_Music_Pet
push str.FLASH_PET
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401ff5
cmp byte [ebp - 0x52d], bl
je 0x401fe2
push ebx
jmp 0x401fe4
push 1
push 0x8002
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 3
call fcn.00404d40
lea ecx, [ebp - 0x548]
mov byte [ebp - 4], 2
call fcn.00404370
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call fcn.00405810
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor eax, eax
call fcn.0040678d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x548]
call fcn.004058c0
lea ecx, [ebp - 0x238]
call fcn.00404f80
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0xa
call fcn.004055a0
push 0x40e25c
push str.param_s
mov dword [ebp - 4], 9
call fcn.00403570
add esp, 8
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 3
call fcn.00404d40
lea ecx, [ebp - 0x318]
call fcn.004016f0
lea ecx, [ebp - 0x318]
mov byte [ebp - 4], 0xd
call fcn.00401af0
lea ecx, [ebp - 0x2a8]
call fcn.00405660
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0xe
call fcn.00402bb0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xf
call fcn.004028d0
push ebx
mov esi, 0xf
push 0x40e18c
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.004015c0
push ebx
push 0x40e18c
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.004015c0
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 0x12
call fcn.00405710
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x13
call fcn.004012d0
mov eax, dword [ebp - 0x18]
mov edi, 0x10
cmp eax, edi
mov byte [ebp - 4], 0x12
jb 0x4021a5
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040627d
add esp, 4
lea ecx, [ebp - 0x118]
call fcn.00402990
test eax, eax
je 0x4021db
lea ecx, [ebp - 0x118]
call fcn.00402aa0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x538], eax
call fcn.004027d0
mov dword [ebp - 0x534], eax
jmp 0x402304
lea ecx, [ebp - 0xa0]
call fcn.004026e0
test eax, eax
je 0x402211
lea ecx, [ebp - 0xa0]
call fcn.00402aa0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x538], eax
call fcn.004027d0
mov dword [ebp - 0x534], eax
jmp 0x402304
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x118]
call fcn.004027e0
lea ecx, [ebp - 0xa0]
call fcn.00402850
push eax
lea ecx, [ebp - 0x118]
call fcn.00402ac0
lea ecx, [ebp - 0xa0]
call fcn.00402940
test eax, eax
je 0x40226d
lea ecx, [ebp - 0xa0]
call fcn.00402aa0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x538], eax
call fcn.004027d0
mov dword [ebp - 0x534], eax
jmp 0x402528
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edx
push edi
push eax
lea ecx, [ebp - 0x118]
call fcn.00402a60
test al, al
je 0x40251e
lea ecx, [ebp - 0x118]
call fcn.00402b30
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x68]
call fcn.004012d0
lea ecx, [ebp - 0x118]
call fcn.00402ab0
test al, al
je 0x4022c5
lea ecx, [ebp - 0x118]
call fcn.00402ca0
test al, al
je 0x4022fa
lea ecx, [ebp - 0xa0]
call fcn.004026e0
test eax, eax
je 0x4024eb
lea ecx, [ebp - 0xa0]
call fcn.00402aa0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x538], eax
call fcn.004027d0
mov dword [ebp - 0x534], eax
mov edi, 0x10
mov esi, 0xf
lea ecx, [ebp - 0x118]
call fcn.00402c40
lea ecx, [ebp - 0xa0]
call fcn.00402940
lea ecx, [ebp - 0x44c]
call fcn.00404f80
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x44c]
mov byte [ebp - 4], 0x19
call fcn.004055a0
lea ecx, [ebp - 0x44c]
mov dword [ebp - 4], 0x18
call fcn.00404c10
cmp dword [eax + 0x18], edi
jb 0x402354
mov eax, dword [eax + 4]
jmp 0x402357
add eax, 4
mov edx, dword [ebp - 0x534]
push eax
mov eax, dword [ebp - 0x538]
push edx
push eax
push str.errcode_derrcodeext_dsoftid_s
call fcn.00403570
add esp, 0x10
lea ecx, [ebp - 0x548]
call fcn.00405a00
lea ecx, [ebp - 0x52c]
call fcn.00404f80
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 0x1d
call fcn.004055a0
push str.exit
push str.param_s
mov dword [ebp - 4], 0x1c
call fcn.00403570
add esp, 8
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 0x18
call fcn.00404d40
lea ecx, [ebp - 0x44c]
mov byte [ebp - 4], 0x12
call fcn.00404d40
cmp dword [ebp - 0x50], edi
jb 0x4023e4
mov edx, dword [ebp - 0x64]
push edx
call fcn.0040627d
add esp, 4
cmp dword [ebp - 0x34], edi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
jb 0x4023fe
mov eax, dword [ebp - 0x48]
push eax
call fcn.0040627d
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
jmp 0x40263a
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.00402800
lea edx, [ebp - 0x68]
push edx
lea ecx, [ebp - 0xa0]
call fcn.004027e0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push esi
push eax
push edi
push ecx
lea ecx, [ebp - 0xa0]
call fcn.004027b0
mov edi, 0x10
mov esi, 0xf
lea ecx, [ebp - 0x118]
call fcn.00402c40
lea ecx, [ebp - 0xa0]
call fcn.00402940
lea ecx, [ebp - 0x548]
call fcn.00405a00
lea ecx, [ebp - 0x238]
call fcn.00404f80
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0x15
call fcn.004055a0
push str.exit
push str.param_s
mov dword [ebp - 4], 0x14
call fcn.00403570
add esp, 8
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0x12
call fcn.00404d40
cmp dword [ebp - 0x50], edi
jb 0x4025a0
mov eax, dword [ebp - 0x64]
push eax
call fcn.0040627d
add esp, 4
cmp dword [ebp - 0x34], edi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
jb 0x4023fe
mov ecx, dword [ebp - 0x48]
push ecx
jmp 0x4023f6
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xf
call fcn.00402820
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0xe
call fcn.00402ae0
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 0xd
call fcn.004055d0
lea ecx, [ebp - 0x318]
mov byte [ebp - 4], 3
call fcn.004055d0
jmp 0x402004