Function at 0x59f9c0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ceddf
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x623ec0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
lea eax, [esi + 0x26f60]
mov edi, 0x32
mov esi, dword [0x9c25ac]
mov edx, eax
mov dword [ebp - 0x2c], eax
nop dword [eax]
mov ecx, dword [edx]
test ecx, ecx
je 0x59fa59
mov eax, dword [0x9c25b0]
mov byte [ecx + 0x14], 1
mov dword [esi + 0x21a7c], 1
mov eax, dword [eax + 0x10]
test eax, eax
je 0x59fa53
cmp dword [eax + 0x1c], ecx
jne 0x59fa4c
mov dword [eax + 0x1c], 0
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x59fa40
mov dword [edx], 0
add edx, 4
sub edi, 1
jne 0x59fa20
mov esi, dword [ebp - 0x28]
push 0xbb8
push edi
lea eax, [esi + 0x27028]
push eax
call fcn.00468b40
mov eax, dword [esi + 0x27d84]
add esp, 0xc
mov dword [ebp - 0x20], edi
test eax, eax
je 0x59faae
sub eax, 1
je 0x59faa7
sub eax, 1
je 0x59faa0
sub eax, 1
jne 0x5a0053
mov ecx, str.UIdemo4.bin
jmp 0x59fab3
mov ecx, str.UIdemo3.bin
jmp 0x59fab3
mov ecx, str.UIdemo2.bin
jmp 0x59fab3
mov ecx, str.UIdemo.bin
push 0x5ec588
lea eax, [ebp - 0x20]
push ecx
push eax
call fcn.0046c5d4
mov eax, dword [ebp - 0x20]
add esp, 0xc
test eax, eax
je 0x5a0053
lea ecx, [esi + 0x27be4]
mov dword [ebp - 0x30], 0
lea edi, [esi + 0x27030]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x24], edi
nop dword [eax]
push eax
push 0x3c
lea esi, [edi - 8]
mov dword [edi + 4], 0
push 1
push esi
call fcn.0047004e
add esp, 0x10
mov dword [ebp - 0x18], eax
test eax, eax
je 0x5a0045
mov ecx, dword [ebp - 0x28]
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
cmp dword [ecx + 0x27d84], 3
jne 0x59fb90
mov ecx, dword [0x915fc8]
mov eax, ecx
neg eax
mov dword [edi + 0x14], 0
mov dword [edi + 8], 0
sbb eax, eax
mov dword [edi + 4], 0
and eax, 0x3e4
mov dword [edi + 0xc], eax
mov eax, dword [edi - 4]
cmp eax, 0x2eb
jne 0x59fb61
mov dword [esi], 0xdb
jmp 0x59fb68
cmp eax, 0x4c9
je 0x59fb7e
mov eax, dword [esi]
cmp eax, 6
je 0x59fb7e
cmp eax, 0x1c
je 0x59fb7e
cmp eax, 0x27
je 0x59fb7e
cmp eax, 0x11
jne 0x59fb90
test ecx, ecx
mov eax, 0x169
mov ecx, 0x164
cmovne eax, ecx
mov dword [edi - 8], eax
push dword [edi - 4]
push dword [edi - 8]
push dword [ebp - 0x30]
push str._Human__d__Face:__d___Helm:__d_n
call fcn.00461520
movzx eax, word [edi - 8]
add esp, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [edi - 8]
lea ecx, [eax + eax*8]
shl ecx, 4
movzx eax, word [ecx + 0x817ff0]
mov word [ebp - 0x68], ax
movzx eax, word [ecx + 0x817ff2]
mov word [ebp - 0x66], ax
mov eax, dword [edi - 4]
mov edi, dword [edi]
lea ecx, [eax + eax*8]
shl ecx, 4
lea esi, [edi + edi*8]
shl esi, 4
movzx eax, word [ecx + 0x817ff0]
mov word [ebp - 0x64], ax
movzx eax, word [ecx + 0x817ff2]
mov word [ebp - 0x62], ax
movzx eax, word [esi + 0x817ff0]
mov edx, eax
mov word [ebp - 0x60], ax
movzx eax, word [esi + 0x817ff2]
mov ecx, eax
mov word [ebp - 0x5e], ax
mov word [ebp - 0x5c], dx
mov word [ebp - 0x58], dx
mov word [ebp - 0x54], dx
mov edx, dword [ebp - 0x24]
mov word [ebp - 0x5a], cx
mov word [ebp - 0x56], cx
mov word [ebp - 0x52], cx
mov eax, dword [edx + 8]
lea ecx, [eax + eax*8]
shl ecx, 4
movzx eax, word [ecx + 0x817ff0]
mov word [ebp - 0x50], ax
movzx eax, word [ecx + 0x817ff2]
mov word [ebp - 0x4e], ax
mov eax, dword [edx + 0xc]
lea ecx, [eax + eax*8]
shl ecx, 4
movzx eax, word [ecx + 0x817ff0]
mov word [ebp - 0x4c], ax
movzx eax, word [ecx + 0x817ff2]
mov cl, byte [esi + 0x81803e]
mov word [ebp - 0x4a], ax
mov al, byte [edx + 0x10]
mov byte [ebp - 0x41], al
mov byte [ebp - 0x42], al
mov byte [ebp - 0x43], al
mov byte [ebp - 0x44], al
mov byte [ebp - 0x45], al
mov byte [ebp - 0x46], al
mov byte [ebp - 0x39], cl
mov byte [ebp - 0x3a], cl
mov byte [ebp - 0x3b], cl
mov byte [ebp - 0x3c], cl
mov byte [ebp - 0x3d], cl
mov byte [ebp - 0x3e], cl
cmp edi, dword [edx - 4]
jne 0x59fc9e
mov byte [ebp - 0x47], al
mov byte [ebp - 0x3f], cl
cmp dword [ebp - 0x18], 0xffffffff
je 0x5a0045
push 0xb5c
call fcn.0046677d
mov esi, eax
add esp, 4
mov dword [ebp - 0x6c], esi
mov dword [ebp - 4], 0
push 0xb5c
push 0
push esi
call fcn.00468b40
add esp, 0xc
mov ecx, esi
push dword [ebp - 0x28]
call fcn.0057a1f0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x2c]
push dword [ebp - 0x30]
push str.person_d
mov dword [esi], eax
mov dword [eax + 0x62c], 1
mov eax, dword [esi]
mov dword [eax + 0x20], 0x2710
mov eax, dword [esi]
add eax, 0xfc
push eax
call fcn.00445aa0
mov edi, dword [ebp - 0x24]
add esp, 0xc
mov eax, dword [edi + 0x14]
cmp eax, 0x938
jl 0x59fd26
cmp eax, 0x956
jl 0x59fd4c
cmp eax, 0xb90
jl 0x59fe8c
cmp eax, 0xbb8
jge 0x59fe8c
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x27d84], 3
je 0x59fe8c
mov eax, dword [esi]
xorps xmm0, xmm0
mov dl, 0x12
mov byte [eax + 0xa44], 1
mov eax, dword [edi + 0x14]
sub eax, 0x7fd
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x24], eax
movzx eax, ax
mov ecx, eax
mov word [ebp - 0x1c], ax
mov eax, dword [esi]
mov dword [ebp - 0x2c], ecx
add ecx, 0xfffffec5
mov word [eax + 0x130], cx
lea ecx, [ebp - 0x1c]
call fcn.0049aed0
mov ecx, eax
call fcn.004b44f0
mov ecx, dword [esi]
mov dword [ecx + 0xa48], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [esi]
lea edx, [eax + eax*8]
shl edx, 4
movzx eax, word [edx + 0x817ff0]
mov word [ecx + 0x132], ax
mov ecx, dword [esi]
movzx eax, word [ecx + 0x132]
mov word [ecx + 0x136], ax
mov ecx, dword [esi]
movzx eax, word [edx + 0x817ff2]
mov word [ecx + 0x134], ax
mov ecx, dword [esi]
movzx eax, word [ecx + 0x134]
mov word [ecx + 0x138], ax
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 0x141]
cmp eax, 4
ja 0x59fe00
mov ecx, dword [ebp - 0x2c]
mov eax, dword [esi]
add ecx, 0xfffffec0
jmp 0x59fe16
lea eax, [ecx - 0x146]
cmp eax, 4
mov eax, dword [esi]
ja 0x59fe3a
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffebb
mov word [eax + 0x13a], cx
mov eax, dword [esi]
mov byte [eax + 0x152], 0
mov eax, dword [esi]
mov byte [eax + 0x153], 0
mov eax, dword [esi]
mov byte [eax + 0x154], 0
jmp 0x59fe5b
xor ecx, ecx
mov word [eax + 0x13a], cx
mov eax, dword [esi]
mov byte [eax + 0x154], cl
mov eax, dword [esi]
mov byte [eax + 0x152], cl
mov eax, dword [esi]
mov byte [eax + 0x153], cl
mov eax, dword [esi]
movsx edx, word [eax + 0x132]
mov ecx, dword [eax + 0xa48]
call fcn.0049ae50
cmp dword [ebp - 0x24], 0x14d
movss dword [eax + 0xa4c], xmm0
jne 0x59fe8c
mov eax, dword [esi]
mov dword [eax + 0xa4c], 0x3f8ccccd
mov eax, dword [esi]
movups xmm0, xmmword [ebp - 0x68]
movups xmmword [eax + 0x172], xmm0
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [eax + 0x182], xmm0
mov eax, dword [esi]
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [eax + 0x192], xmm0
cmp dword [edi + 4], 0
jle 0x59fefd
mov eax, dword [esi]
mov byte [eax + 0xa5a], 1
mov eax, dword [edi + 4]
mov ecx, dword [esi]
lea eax, [eax + eax*8]
shl eax, 4
mov ax, word [eax + 0x817ff2]
mov word [ecx + 0xa5c], ax
mov ecx, dword [esi]
movzx eax, byte [edi + 0x10]
mov byte [ecx + 0xa5e], al
mov eax, dword [edi + 4]
mov ecx, dword [esi]
lea eax, [eax + eax*8]
shl eax, 4
movzx eax, byte [eax + 0x81803e]
mov byte [ecx + 0xa5f], al
cmp dword [0x915fc8], 0
cvttss2si eax, dword [edi + 0x20]
mov ecx, dword [ebp - 0x34]
mov dword [ecx - 4], eax
cvttss2si eax, dword [edi + 0x24]
mov dword [ecx], eax
mov eax, dword [esi]
mov byte [eax + 0x210], 1
je 0x59ff2a
cmp dword [edi - 8], 0xdb
jne 0x59ff33
mov eax, dword [esi]
mov byte [eax + 0xa3f], 1
push dword [ebp - 0x38]
mov ecx, dword [esi]
call fcn.0057aef0
mov ecx, dword [esi]
call fcn.0057b2b0
movzx eax, word [edi + 8]
mov ecx, dword [esi]
push eax
movzx eax, word [edi + 0xc]
push eax
call fcn.0057e110
movd xmm0, dword [edi + 0x28]
mov ecx, dword [esi]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x38], ecx
cmp dword [ecx + 0x1d4], 0
mulss xmm0, dword [0x605088]
divss xmm0, dword [0x605250]
jne 0x59ffc1
cmp dword [ecx + 0x218], 0x2c
jne 0x59ff8c
movss xmm0, dword [0x604fb8]
mov eax, dword [ecx]
sub esp, 0xc
mov dword [esp + 8], 0
movss dword [esp + 4], xmm0
mov dword [esp], 0
call dword [eax + 0x48]
mov eax, dword [ebp - 0x38]
movss xmm0, dword [eax + 0x34]
movss dword [eax + 0x1f8], xmm0
movss dword [eax + 0x1dc], xmm0
movss xmm0, dword [edi + 0x1c]
sub esp, 0xc
mov ecx, dword [esi]
movss dword [esp + 8], xmm0
movss xmm0, dword [edi + 0x18]
mov dword [esp + 4], 0
movss dword [esp], xmm0
call fcn.0057f2f0
movd xmm0, dword [edi + 0x2c]
mov eax, dword [esi]
cvtdq2ps xmm0, xmm0
movss dword [eax + 0x1d8], xmm0
mov eax, dword [esi]
mov byte [eax + 0x214], 1
mov eax, dword [ebp - 0x28]
mov edx, dword [esi]
mov ecx, dword [eax + 0x34]
mov dword [edx + 4], ecx
mov eax, dword [ecx + 0x10]
mov dword [edx + 0xc], eax
mov dword [ecx + 0x10], edx
mov eax, dword [edx + 0xc]
test eax, eax
je 0x5a0021
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x30]
add esi, 4
add dword [ebp - 0x34], 8
inc eax
add edi, 0x3c
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], edi
cmp eax, 0x32
jge 0x5a0045
mov eax, dword [ebp - 0x20]
jmp 0x59faf0
push dword [ebp - 0x20]
call fcn.0046bf19
mov esi, dword [ebp - 0x28]
add esp, 4
add esi, 0x26f60
mov edi, 0x32
nop
mov eax, dword [esi]
test eax, eax
je 0x5a007d
mov dword [eax + 0x48], 1
mov ecx, dword [esi]
push 0
call fcn.0057f3d0
mov ecx, dword [esi]
call fcn.005815d0
add esi, 4
sub edi, 1
jne 0x5a0060
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046676f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret