Function at 0x4912f0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x51c1b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
mov eax, dword [0x565e78]
push ebp
mov ebp, dword [esp + 0xa8]
mov dword [esp + 0x94], eax
lea eax, [ebp + 0x130]
test eax, eax
je 0x491334
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4919a1
push ebx
push esi
push edi
push 0x56b6f0
lea ecx, [esp + 0x1c]
call fcn.00402030
push 0xc
push str.portrait.ini
lea ecx, [esp + 0x20]
mov dword [esp + 0xb4], 0
call fcn.00401a20
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push str.MALE
push str.COUNT
call esi
mov ecx, dword [esp + 0x18]
push ecx
push 0
push str.FEMALE
push str.COUNT
mov ebx, eax
call esi
mov edx, dword [esp + 0x18]
push edx
push 0
push str.ANIMAL
mov edi, eax
push str.COUNT
mov dword [esp + 0x38], edi
call esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
push eax
push 0
push str.VIPMALE
push str.COUNT
call esi
mov ecx, dword [esp + 0x18]
push ecx
push 0
push str.VIPFEMALE
push str.COUNT
mov dword [esp + 0x30], eax
call esi
mov edx, dword [esp + 0x18]
push edx
push 0
push str.VIPANIMAL
push str.COUNT
mov dword [esp + 0x34], eax
call esi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
push 0
add eax, edi
lea ecx, [eax + ebx + 4]
push ecx
push 0x21
push 0x10
push 0x10
lea ecx, [ebp + 0x130]
call fcn.004f4ded
mov eax, 0x56b5e8
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
lea ecx, [eax + 1]
jmp 0x491430
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x491430
sub eax, ecx
push eax
push 0x56b5e8
lea ecx, [esp + 0x38]
call fcn.00401b10
lea edx, [esp + 0x30]
push edx
mov edi, str.imgulst_state_list.bmp
lea esi, [esp + 0x88]
mov byte [esp + 0xb0], 1
call fcn.004078a0
add esp, 4
mov byte [esp + 0xac], 3
mov eax, dword [esp + 0x48]
mov edi, 0x10
cmp eax, edi
jb 0x49148b
mov eax, dword [esp + 0x34]
push eax
call fcn.004fa776
add esp, 4
mov eax, dword [esp + 0x9c]
xor esi, esi
cmp eax, edi
mov eax, dword [esp + 0x88]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], esi
mov byte [esp + 0x34], 0
jae 0x4914b7
lea eax, [esp + 0x88]
push edi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
call fcn.004ffb11
cmp eax, esi
jne 0x4914d1
xor eax, eax
jmp 0x4914d4
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 0x134]
push 0xff00ff
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov eax, 0x56b5e8
mov dword [esp + 0x60], esi
mov dword [ebp + 0x138], 4
mov dword [esp + 0x64], 0xf
mov byte [esp + 0x50], 0
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x491510
sub eax, esi
push eax
push 0x56b5e8
lea ecx, [esp + 0x54]
call fcn.00401b10
lea edx, [esp + 0x4c]
push edx
mov edi, str.imgulst_vip_list.bmp
lea esi, [esp + 0x6c]
mov byte [esp + 0xb0], 4
call fcn.004078a0
add esp, 4
mov byte [esp + 0xac], 6
mov eax, dword [esp + 0x64]
mov esi, 0x10
cmp eax, esi
jb 0x491568
mov eax, dword [esp + 0x50]
push eax
call fcn.004fa776
add esp, 4
cmp dword [esp + 0x80], esi
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
jae 0x49158e
lea eax, [esp + 0x6c]
push esi
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
call fcn.004ffb11
test eax, eax
je 0x4915ab
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 0x134]
push 0xff00ff
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push 0x56b6f0
lea ecx, [esp + 0x18]
call fcn.00402030
push 9
push str._04ds.bmp
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb4], 7
call fcn.00401a20
call fcn.004fa853
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
mov byte [esp + 0xac], 8
mov eax, dword [ebp + 0x138]
add eax, 4
xor esi, esi
test ebx, ebx
mov dword [ebp + 0x13c], eax
jle 0x491661
mov ecx, dword [esp + 0x14]
push esi
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00405820
mov edi, dword [esp + 0x1c]
add esp, 0xc
push 0x10
push 0x10
push 0x10
push 0
push edi
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
call fcn.004ffb11
test eax, eax
je 0x491649
mov eax, dword [eax + 4]
push 0xff00ff
push eax
mov eax, dword [ebp + 0x134]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
inc esi
cmp esi, ebx
jl 0x491614
mov ecx, dword [ebp + 0x13c]
mov eax, dword [esp + 0x28]
add ecx, ebx
xor esi, esi
test eax, eax
mov dword [ebp + 0x140], ecx
jle 0x4916db
lea esp, [esp]
mov eax, dword [esp + 0x14]
lea edx, [esi + 0x1f4]
push edx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00405820
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_LoadImageA]
add esp, 0xc
push 0x10
push 0x10
push 0x10
push 0
push edi
push 0
call ebx
push eax
call fcn.004ffb11
test eax, eax
je 0x4916bd
mov eax, dword [eax + 4]
mov edx, dword [ebp + 0x134]
push 0xff00ff
push eax
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
jl 0x491680
jmp 0x4916e1
mov ebx, dword [sym.imp.USER32.dll_LoadImageA]
mov eax, dword [ebp + 0x140]
add eax, dword [esp + 0x28]
mov dword [ebp + 0x144], eax
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
jle 0x491753
jmp 0x491700
mov edx, dword [esp + 0x14]
lea ecx, [esi + 0x3e8]
push ecx
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00405820
mov edi, dword [esp + 0x1c]
add esp, 0xc
push 0x10
push 0x10
push 0x10
push 0
push edi
push 0
call ebx
push eax
call fcn.004ffb11
test eax, eax
je 0x491737
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 0x134]
push 0xff00ff
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x491700
mov edx, dword [ebp + 0x144]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add edx, ecx
xor esi, esi
test eax, eax
mov dword [ebp + 0x148], edx
jle 0x4917c0
nop
mov ecx, dword [esp + 0x14]
lea eax, [esi + 0x64]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00405820
mov edi, dword [esp + 0x1c]
add esp, 0xc
push 0x10
push 0x10
push 0x10
push 0
push edi
push 0
call ebx
push eax
call fcn.004ffb11
test eax, eax
je 0x4917a4
mov eax, dword [eax + 4]
push 0xff00ff
push eax
mov eax, dword [ebp + 0x134]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jl 0x491770
mov ecx, dword [ebp + 0x148]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add ecx, edx
xor esi, esi
test eax, eax
mov dword [ebp + 0x14c], ecx
jle 0x491833
lea esp, [esp]
mov eax, dword [esp + 0x14]
lea edx, [esi + 0x258]
push edx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00405820
mov edi, dword [esp + 0x1c]
add esp, 0xc
push 0x10
push 0x10
push 0x10
push 0
push edi
push 0
call ebx
push eax
call fcn.004ffb11
test eax, eax
je 0x491817
mov eax, dword [eax + 4]
mov edx, dword [ebp + 0x134]
push 0xff00ff
push eax
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
jl 0x4917e0
mov eax, dword [ebp + 0x14c]
add eax, dword [esp + 0x24]
mov dword [ebp + 0x150], eax
mov eax, dword [esp + 0x2c]
xor esi, esi
test eax, eax
jle 0x4918a3
lea ecx, [ecx]
mov edx, dword [esp + 0x14]
lea ecx, [esi + 0x44c]
push ecx
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00405820
mov edi, dword [esp + 0x1c]
add esp, 0xc
push 0x10
push 0x10
push 0x10
push 0
push edi
push 0
call ebx
push eax
call fcn.004ffb11
test eax, eax
je 0x491887
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 0x134]
push 0xff00ff
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x491850
lea eax, [ebp + 0x130]
test eax, eax
je 0x4918b0
mov eax, dword [eax + 4]
mov edx, dword [ebp + 0x1c]
push eax
push 1
push 0x1003
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.004f4d46
add edi, 0xfffffff0
mov byte [esp + 0xac], 7
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4918ea
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov byte [esp + 0xac], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x491910
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x80]
mov ebx, 0x10
cmp eax, ebx
jb 0x49192d
mov eax, dword [esp + 0x6c]
push eax
call fcn.004fa776
add esp, 4
mov eax, dword [esp + 0x9c]
xor edi, edi
cmp eax, ebx
mov esi, 0xf
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], edi
mov byte [esp + 0x6c], 0
jb 0x49195f
mov ecx, dword [esp + 0x88]
push ecx
call fcn.004fa776
add esp, 4
mov dword [esp + 0xac], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], edi
mov byte [esp + 0x88], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
pop esi
pop ebx
jg 0x4919a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x94]
pop ebp
call fcn.004b6cac
add esp, 0xa0
ret 4