Function at 0x4a47d0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4ef168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
call fcn.0045ae70
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
xor ebp, ebp
push ecx
push 0xca
mov dword [esp + 0x40], ebp
mov dword [esi], 0x4f94e0
mov dword [esi + 8], str.PartyGump
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], 2
mov dword [esi + 0xac], ebp
call fcn.004447f0
lea edx, [esp + 0x2c]
lea eax, [esp + 0x30]
push edx
push eax
push 0xc8
call fcn.004447f0
lea ecx, [esp + 0x40]
lea edx, [esp + 0x28]
push ecx
push edx
push 0xcb
call fcn.004447f0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esi + 0xa8], 0x17c
mov dword [esi + 0x24], 0x1e0
lea ecx, [eax + ecx + 0x1c7]
push str.framedata_for_PartyGump
mov dword [esi + 0x20], ecx
mov eax, dword [0x541bec]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x30], eax
mov edx, dword [0x541bf0]
lea eax, [edx - 0x1e0]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x18]
shl eax, 3
push eax
call fcn.00479630
mov ecx, dword [esi + 0x18]
mov edi, eax
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x3c], edi
push str.Party_frame0
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x24]
imul eax, dword [esi + 0x20]
lea ecx, [eax + eax + 4]
push ecx
call fcn.00479630
mov edx, dword [esi + 0x3c]
mov dword [edx + 4], eax
mov ecx, dword [esi + 0x24]
imul ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x3c]
shl ecx, 1
mov edi, dword [edx + 4]
xor eax, eax
mov edx, ecx
add edi, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push str.Party_frame1
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x3c]
mov dx, word [esi + 0x20]
mov ecx, dword [eax + 4]
mov word [ecx], dx
mov eax, dword [esi + 0x3c]
mov dx, word [esi + 0x24]
mov ecx, dword [eax + 4]
mov word [ecx + 2], dx
mov eax, dword [esi + 0x24]
imul eax, dword [esi + 0x20]
lea ecx, [eax + eax + 4]
push ecx
call fcn.00479630
mov edx, dword [esi + 0x3c]
add esp, 0x3c
mov dword [edx + 0xc], eax
mov ecx, dword [esi + 0x24]
imul ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x3c]
xor eax, eax
shl ecx, 1
mov edi, dword [edx + 0xc]
mov edx, ecx
add edi, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x3c]
mov dx, word [esi + 0x20]
lea edi, [esi + 0xbc]
mov ecx, dword [eax + 0xc]
mov word [ecx], dx
mov eax, dword [esi + 0x3c]
mov dx, word [esi + 0x24]
mov ecx, dword [eax + 0xc]
xor eax, eax
mov word [ecx + 2], dx
mov ecx, 0xa
rep stosd dword es:[edi], eax
mov ecx, esi
mov dword [esi + 0xe4], ebp
call fcn.004a51f0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x475
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call fcn.004447f0
mov ebx, dword [esp + 0x1c]
mov eax, 0x1c2
sub eax, ebx
add esp, 0xc
cdq
sub eax, edx
mov ebx, 0x32
mov edi, eax
sar edi, 1
add edi, 0x2d
mov edx, dword [esi + 0x3c]
xor ecx, ecx
mov eax, dword [edx + 4]
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
add eax, 4
push edx
push eax
push ebx
push edi
push 0x475
push fcn.004c00b0
call fcn.00444850
add esp, 0x1c
mov ecx, esi
push ebp
call fcn.004a55e0
add ebx, 0x19
inc ebp
cmp ebx, 0x12c
jl 0x4a49d2
push 1
push 0
mov ecx, esi
call fcn.0045a530
mov eax, dword [esi + 0x3c]
push 0
mov ecx, dword [eax + 4]
push ecx
push 0xa28
push 0x1e0
push 0x1c2
push 0
push 0
call fcn.0042d1a0
mov ecx, dword [esp + 0x48]
add esp, 0x1c
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret