Function at 0x421fc0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x46fc52
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x492bec]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x492bec]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x280]
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], ebx
call fcn.004201a0
mov esi, dword [esp + 0x284]
mov dword [edi + 0xb0], esi
call fcn.00412620
mov dword [eax + 0x90], esi
cmp esi, 1
jne 0x4220aa
push ebp
call fcn.004479d0
add esp, 4
test eax, eax
je 0x4220bb
add edi, 0x10
push ebp
mov ecx, edi
call fcn.00414500
test esi, esi
jne 0x4226bf
push 0x48078c
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.0041b6d0
add esp, 0xc
push eax
mov ecx, edi
mov dword [esp + 0x27c], 4
call fcn.00414500
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x278], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4222f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4222f6
test esi, esi
jne 0x42203d
push ebp
call fcn.004479a0
add esp, 4
test eax, eax
jne 0x42203d
lea eax, [esp + 0x14]
push eax
call fcn.00447f80
push 0x103
lea ecx, [esp + 0x6d]
push 0
push ecx
mov dword [esp + 0x288], 0
mov byte [esp + 0x74], 0
call sub.MSVCR90.dll_memset
mov ebp, dword [ebp]
mov edx, dword [esp + 0x24]
add esp, 0x10
push ebp
push edx
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
cmp esi, 1
jne 0x422220
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x24]
call fcn.00413760
lea edx, [esp + 0x20]
mov ebx, esi
push edx
mov byte [esp + 0x27c], 1
mov dword [esp + 0x30], ebx
call fcn.004479d0
add esp, 4
test eax, eax
je 0x42225b
mov byte [esp + 0x1b], 0
mov dword [esp + 0x278], 1
test bl, 2
je 0x422173
mov eax, dword [esp + 0x1c]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x2c], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422173
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x278], 0
test bl, 1
je 0x4221a3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4221a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], 0
je 0x422265
push 0x64
call fcn.00416dc0
lea ecx, [esp + 0x68]
push ecx
push str.The_skin_folder_invalid___s_
push 3
call fcn.00442f40
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
mov dword [esp + 0x278], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4221f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0046d6fc
add esp, 0x268
ret 8
test esi, esi
jne 0x422137
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x20]
call fcn.00413760
lea ecx, [esp + 0x1c]
mov ebx, 2
push ecx
mov dword [esp + 0x27c], ebx
mov dword [esp + 0x30], ebx
call fcn.004479a0
add esp, 4
test eax, eax
jne 0x422137
mov byte [esp + 0x1b], 1
jmp 0x42213c
lea ecx, [esp + 0x64]
add edi, 0x10
push ecx
mov ecx, edi
call fcn.00413720
test esi, esi
jne 0x4222c3
push 0x48078c
lea edx, [esp + 0x20]
push edi
push edx
call fcn.0041b6d0
add esp, 0xc
push eax
mov ecx, edi
mov byte [esp + 0x27c], 3
call fcn.00414500
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x278], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4222c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x278], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4222ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x4226bf
lea ecx, [esp + 0x34]
call fcn.00436310
push str.config.ini
lea ecx, [esp + 0x24]
push edi
push ecx
mov dword [esp + 0x284], 5
call fcn.0041b6d0
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x288], 6
call fcn.004479d0
add esp, 0x10
test eax, eax
je 0x4224be
mov eax, dword [esp + 0x20]
push eax
push 0
push str.count
push str.xmlindex
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x422438
xor esi, esi
test eax, eax
jle 0x422438
mov ebp, dword [sym.imp.MSVCR90.dll_sprintf]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x104
lea ecx, [esp + 0x16c]
push 0
push ecx
call sub.MSVCR90.dll_memset
push 0x100
lea edx, [esp + 0x74]
push 0
push edx
call sub.MSVCR90.dll_memset
inc esi
push esi
lea eax, [esp + 0x80]
push 0x481590
push eax
call ebp
mov ecx, dword [esp + 0x44]
add esp, 0x24
push ecx
push 0x104
lea edx, [esp + 0x170]
push edx
push 0x47ee18
lea eax, [esp + 0x74]
push eax
push str.xmlindex
call ebx
lea ecx, [esp + 0x168]
push ecx
lea edx, [esp + 0x18]
push edi
push edx
call fcn.0041b6d0
add esp, 0xc
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x27c], 7
call fcn.0041f120
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x38]
call fcn.00421f40
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x278], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42242e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, dword [esp + 0x1c]
jl 0x422370
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x40]
xor esi, esi
sar eax, 2
test eax, eax
jle 0x422478
mov edi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp esi, eax
jb 0x422459
call edi
mov ecx, dword [esp + 0x40]
lea edx, [ecx + esi*4]
push edx
mov ecx, ebp
call fcn.004216d0
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x40]
inc esi
sar eax, 2
cmp esi, eax
jl 0x422455
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x278], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4224a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x278], 0xffffffff
call fcn.00420fd0
mov eax, 1
jmp 0x4221f6
lea ecx, [esp + 0x4c]
call fcn.00447a60
push str..xml
lea ecx, [esp + 0x20]
push edi
push ecx
mov byte [esp + 0x284], 8
call fcn.0041b6d0
add esp, 0xc
mov edx, dword [esp + 0x1c]
push 0
push edx
lea ecx, [esp + 0x54]
mov byte [esp + 0x280], 9
call fcn.00447b20
mov ebp, dword [esp + 0x24]
test eax, eax
je 0x4225cc
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.004393b0
mov dword [esp + 0x14], eax
mov bl, 0xc
jmp 0x422520
lea ecx, [esp + 0x4c]
call fcn.00447960
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x50]
mov esi, eax
call fcn.00447ee0
push eax
lea edx, [esp + 0x2c]
push edi
push edx
mov byte [esp + 0x284], 0xa
call fcn.0041b600
add esp, 0xc
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x278], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422577
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 0
je 0x422613
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.0041f120
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x38]
call fcn.00421f40
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x278], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4225c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x422520
lea ecx, [esp + 0x4c]
call fcn.004478a0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x278], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4225fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x278], 6
call fcn.004479e0
jmp 0x42243c
push 0x65
call fcn.00416dc0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x278], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422645
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x278], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42266d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x278], 6
call fcn.004479e0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x278], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4226a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x278], 0xffffffff
call fcn.00420fd0
jmp 0x4221f4
cmp esi, 1
jne 0x4221f4
mov edi, dword [edi]
mov ecx, dword [esp + 0x24]
push edi
call fcn.00421dd0
jmp 0x4221f6