Function at 0x4540b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a8279
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x24], edi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov eax, dword [0x4cd448]
mov dword [edi + 0x10], eax
mov dl, byte [esp + 0x13]
mov al, byte [esp + 0x13]
lea ecx, [edi + 0x1c]
mov dword [esp + 0x30], ebx
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.004589d0
mov cl, byte [esp + 0x13]
lea esi, [edi + 0x2c]
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
push str.DataTable_
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 2
mov dword [edi + 0x3c], ebx
mov dword [edi], 0x4ad704
call fcn.0049da84
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
mov ecx, esi
mov byte [esp + 0x3c], 3
call fcn.00431520
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 2
call fcn.0049da16
push str.MapElanElan.ebp
lea ecx, [esp + 0x1c]
call fcn.0049da84
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
mov ecx, esi
mov byte [esp + 0x3c], 4
call fcn.00431520
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 2
call fcn.0049da16
push 0x4c057c
lea ecx, [esp + 0x1c]
call fcn.0049da84
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
mov ecx, esi
mov byte [esp + 0x3c], 5
call fcn.00431520
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 2
call fcn.0049da16
push str.CharacterPlayerBone
lea ecx, [esp + 0x1c]
call fcn.0049da84
mov ecx, dword [esi + 8]
push eax
mov byte [esp + 0x34], 6
push 1
push ecx
mov ecx, esi
call fcn.00431520
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 2
call fcn.0049da16
push str.CharacterPlayerAni
lea ecx, [esp + 0x24]
call fcn.0049da84
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub edx, eax
mov byte [esp + 0x30], 7
sar edx, 2
cmp edx, 1
mov ebp, eax
jae 0x4542b5
mov ecx, esi
call fcn.00459090
cmp eax, 1
jbe 0x454220
mov ecx, esi
call fcn.00459090
mov dword [esp + 0x18], eax
jmp 0x454228
mov dword [esp + 0x18], 1
mov ecx, esi
call fcn.00459090
add eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
jns 0x45423b
xor eax, eax
shl eax, 2
push eax
call fcn.0049d757
mov ecx, dword [esi + 4]
add esp, 4
mov ebx, eax
push ebx
push ebp
push ecx
mov ecx, esi
call fcn.004590b0
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
push 1
push eax
mov dword [esp + 0x24], eax
call fcn.004590f0
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 8]
add eax, 4
push eax
push ecx
push ebp
mov ecx, esi
call fcn.004590b0
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
mov ecx, esi
call fcn.00437910
mov eax, dword [esi + 4]
push eax
call fcn.0049d780
mov ecx, dword [esp + 0x20]
add esp, 4
lea edx, [ebx + ecx*4]
mov ecx, esi
mov dword [esi + 0xc], edx
call fcn.00459090
lea eax, [ebx + eax*4 + 4]
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
jmp 0x45432e
mov ecx, eax
sub ecx, ebp
sar ecx, 2
cmp ecx, 1
jae 0x4542fd
lea edx, [ebp + 4]
mov ecx, esi
push edx
push eax
push ebp
call fcn.004590b0
mov eax, dword [esi + 8]
mov ebx, dword [esp + 0x14]
mov ecx, eax
mov edx, 1
sub ecx, ebp
push ebx
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.004590f0
mov eax, dword [esi + 8]
push ebx
push eax
push ebp
call fcn.004592f0
add esp, 0xc
jmp 0x45432a
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.004590b0
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push ebp
call fcn.00459320
mov ecx, dword [esp + 0x20]
lea edx, [ebp + 4]
push ecx
push edx
push ebp
call fcn.004592f0
add esp, 0x18
add dword [esi + 8], 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 2
call fcn.0049da16
mov ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret