Function at 0x697ce0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x7309e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x58]
call fcn.00405ed0
lea ecx, [esp + 0x48]
call fcn.00405ed0
lea ecx, [esp + 0x68]
call fcn.00405ed0
lea ecx, [esp + 0x20]
call fcn.005b3190
lea ecx, [esp + 0x14]
mov dword [esp + 0x104], 0
call fcn.005b3190
lea ecx, [esp + 0x30]
mov byte [esp + 0x104], 1
call fcn.005b3190
mov bl, 2
push str.RACE
lea ecx, [esp + 0x10]
mov byte [esp + 0x108], bl
call fcn.005e5a90
mov eax, dword [0x7a3a28]
mov edi, dword [ebp + 0xc]
mov eax, dword [eax + 0xb8]
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x20]
push ecx
movzx ecx, word [edi + 0x18]
lea edx, [esp + 0x10]
push edx
push ecx
mov ecx, eax
mov byte [esp + 0x110], 3
call fcn.00413270
lea ecx, [esp + 0xc]
mov byte [esp + 0x104], bl
call fcn.005e5c20
push str.ENVMAP
lea ecx, [esp + 0x10]
call fcn.005e5a90
mov edx, dword [0x7a3a28]
mov eax, dword [edx + 0xb8]
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x14]
push ecx
movzx ecx, word [edi + 0x18]
lea edx, [esp + 0x10]
push edx
push ecx
mov ecx, eax
mov byte [esp + 0x110], 4
call fcn.00413270
lea ecx, [esp + 0xc]
mov byte [esp + 0x104], bl
call fcn.005e5c20
lea ecx, [esp + 0x14]
call fcn.005e5790
test eax, eax
jle 0x697e1a
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x70]
call fcn.004061f0
mov dword [esp + 0x1c], 1
jmp 0x697e22
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x5c]
push edx
push edi
mov ecx, esi
call fcn.00697610
mov ax, word [esi + 0x18]
cmp ax, word [edi + 0x18]
jne 0x697eae
mov ecx, dword [esi + 0x14]
cmp ecx, dword [edi + 0x14]
jne 0x697eae
mov dl, byte [esi]
cmp dl, byte [edi]
jne 0x697eae
mov al, byte [esi + 1]
cmp al, byte [edi + 1]
jne 0x697eae
mov cl, byte [esi + 0x1b]
cmp cl, byte [edi + 0x1b]
jne 0x697eae
lea ecx, [esp + 0x30]
mov byte [esp + 0x104], 1
call fcn.005e5c20
lea ecx, [esp + 0x14]
mov byte [esp + 0x104], 0
call fcn.005e5c20
lea ecx, [esp + 0x20]
mov dword [esp + 0x104], 0xffffffff
call fcn.005e5c20
mov eax, 1
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dl, byte [edi]
mov byte [esi], dl
mov al, byte [edi + 1]
mov byte [esi + 1], al
mov cx, word [edi + 0x18]
mov word [esi + 0x18], cx
mov edx, dword [edi + 0x14]
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x14], edx
mov al, byte [edi + 0x1b]
push 1
mov byte [esi + 0x1b], al
mov edx, dword [ecx]
push 0xfe
call dword [edx + 0x98]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x2c], ebx
je 0x697ef1
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0x58]
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
call dword [edx + 0x11c]
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [ecx]
push 0xff
call dword [eax + 0x7c]
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
push eax
push 0xff
lea eax, [esp + 0x60]
push eax
call dword [edx + 0x78]
test eax, eax
jne 0x697f92
lea ecx, [esp + 0x58]
call fcn.00405fe0
push eax
lea ecx, [esp + 0x7c]
push str.CSWCCreatureAppearance::CreateBTypeBody__:_Failed_to_load_model__s.
push ecx
call fcn.006fadb0
add esp, 0xc
lea ecx, [esp + 0x30]
mov byte [esp + 0x104], 1
call fcn.005e5c20
lea ecx, [esp + 0x14]
mov byte [esp + 0x104], 0
call fcn.005e5c20
lea ecx, [esp + 0x20]
mov dword [esp + 0x104], 0xffffffff
call fcn.005e5c20
xor eax, eax
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
push 1
push 0xff
call dword [edx + 0x98]
test eax, eax
mov dword [esp + 0x28], eax
je 0x697fd9
mov ecx, dword [esi + 0x3c]
mov eax, dword [eax]
add ecx, 0x24
mov ebx, dword [ecx]
sub esp, 0xc
mov edx, esp
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [edx + 4], ebx
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x44]
push edx
call dword [eax + 0x5c]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x697fec
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx]
call dword [eax + 0x118]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x697fff
lea eax, [esp + 0x68]
push eax
push 1
push 1
jmp 0x698016
push str.DEFAULT
lea ecx, [esp + 0x3c]
call fcn.00406d80
lea eax, [esp + 0x38]
push eax
push 1
push 0
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
push 0xff
call dword [edx + 0xac]
mov eax, dword [0x7a39fc]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x698042
mov edx, dword [esi + 0x3c]
mov ecx, dword [eax + 4]
push edx
call fcn.005eda30
test eax, eax
je 0x69805d
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx]
push 1
push 0xff
call dword [eax + 0x98]
mov edx, dword [eax]
push 0
mov ecx, eax
call dword [edx + 0x40]
push 0x73d71c
lea ecx, [esp + 0x4c]
call fcn.00406060
test eax, eax
je 0x698096
push 0x73d71c
lea ecx, [esp + 0x3c]
call fcn.00406d80
push 1
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esi + 0x3c]
push 0xff
call fcn.0063c0a0
mov dx, word [edi + 0x18]
mov eax, dword [esi + 0x3c]
push eax
mov edi, 1
push str.AppearanceForceUpdate
push 0
mov word [esi + 0x18], dx
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
call fcn.00610f40
add esp, 0xc
test ebx, ebx
je 0x6980e3
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
push edi
push 0xff
call dword [edx + 0x98]
mov edx, dword [ebx]
push 0
push str.HeadHook
push eax
mov ecx, ebx
call dword [edx + 0x50]
mov dword [esi + 0x50], edi
mov eax, dword [0x7a39fc]
mov ecx, dword [eax + 4]
call fcn.005edc10
lea ecx, [esp + 0x30]
mov dword [esi + 0x68], eax
mov byte [esp + 0x104], 1
call fcn.005e5c20
lea ecx, [esp + 0x14]
mov byte [esp + 0x104], 0
call fcn.005e5c20
lea ecx, [esp + 0x20]
mov dword [esp + 0x104], 0xffffffff
call fcn.005e5c20
mov ecx, dword [esp + 0xfc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8