Function at 0x4b5697
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, edx
mov dword [esp + 0x18], ecx
push ebx
xor ebx, ebx
mov dword [esp + 0xc], eax
push esi
mov edx, dword [eax]
xorps xmm0, xmm0
push edi
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x34], ebx
mov ecx, dword [edx]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov ecx, dword [ecx]
mov dword [esp + 0x20], ecx
mov byte [esp + 0x13], bl
cmp byte [ecx + 0x57], bl
jne 0x4b627d
imul esi, dword [ebp + 8], 0x30
add esi, dword [eax + 0x18]
lea eax, [edx + 0x1f0]
mov ecx, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], eax
mov edi, dword [esi]
mov dword [eax], ebx
mov dword [esp + 0x78], edi
mov edx, dword [edi + 0xc]
call fcn.004b65cc
mov dword [esp + 0x40], eax
mov al, byte [edi]
mov byte [esp + 0x12], al
movzx eax, al
mov dword [esp + 0x4c], edx
mov dword [esp + 0x3c], eax
cmp eax, 0x31
jne 0x4b5762
mov ecx, dword [esp + 0x1c]
mov edx, edi
call fcn.00487f1b
test eax, eax
jne 0x4b627d
mov edx, dword [edi + 0x14]
mov eax, 0x1000
mov ecx, dword [esp + 0x28]
test dword [edi + 4], eax
je 0x4b574b
call fcn.004b5480
jmp 0x4b5750
call fcn.004b65f2
mov ecx, eax
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
or ecx, dword [esp + 0x40]
or edx, dword [esp + 0x4c]
jmp 0x4b5796
mov edx, dword [edi + 0x10]
mov ecx, dword [esp + 0x28]
call fcn.004b65cc
mov ecx, eax
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], ecx
cmp dword [edi + 0xc], ebx
je 0x4b5789
test dword [edi + 4], 0x41000
jne 0x4b5789
cmp dword [edi + 0x14], ebx
je 0x4b5758
mov ecx, dword [esp + 0x28]
mov edx, edi
call fcn.004b6599
mov ecx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
cmp dword [eax], ebx
je 0x4b57af
mov eax, 0x1000
or word [esi + 0xa], ax
mov eax, dword [edi + 4]
mov dword [esp + 0x64], eax
test al, 3
je 0x4b5870
mov edx, dword [edi + 0x24]
mov ecx, dword [esp + 0x28]
call fcn.004b6890
test byte [esp + 0x64], 1
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x74], eax
je 0x4b5823
or edx, dword [esp + 0x38]
or ecx, eax
add eax, 0xffffffff
mov dword [esp + 0x68], ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x38]
adc eax, 0xffffffff
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x64], eax
mov eax, edx
shrd dword [esp + 0x68], eax, 1
mov dword [esp + 0x30], edx
shr eax, 1
cmp eax, dword [esp + 0x38]
ja 0x4b5851
jb 0x4b5880
mov eax, dword [esp + 0x68]
cmp eax, dword [esp + 0x74]
jae 0x4b5851
jmp 0x4b5880
mov eax, edx
mov dword [esp + 0x68], ecx
shrd dword [esp + 0x68], eax, 1
shr eax, 1
cmp eax, dword [esp + 0x38]
jb 0x4b5870
ja 0x4b5843
mov eax, dword [esp + 0x68]
cmp eax, dword [esp + 0x74]
jb 0x4b5870
mov eax, dword [esp + 0x24]
cmp dword [eax], ebx
jle 0x4b5866
test byte [eax + 0x2c], 0x40
je 0x4b5866
push 0x432860
push dword [esp + 0x20]
call fcn.0045c6d7
pop ecx
pop ecx
jmp 0x4b627d
mov eax, dword [esp + 0x64]
and eax, 0xfffffffd
mov dword [edi + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x58], eax
or dword [esi + 0x14], 0xffffffff
xor eax, eax
or dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x28], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x2c], edx
mov word [esi + 0xc], ax
call fcn.004b47ff
test eax, eax
je 0x4b5af3
mov ecx, dword [edi + 0xc]
call fcn.00485271
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x38], eax
call fcn.00485271
mov edx, dword [esp + 0x40]
mov ecx, dword [esi + 0x24]
and edx, dword [esi + 0x20]
and ecx, dword [esp + 0x4c]
or edx, ecx
mov dword [esp + 0x74], eax
mov eax, 0x800
mov dword [esp + 0x54], 0x3fff
je 0x4b58e0
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x1c]
test eax, eax
jle 0x4b58fb
imul ecx, eax, 0x14
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x14]
mov eax, dword [ecx + eax - 0xc]
mov dword [esp + 0x38], eax
jmp 0x4b58ff
mov eax, dword [esp + 0x38]
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x7c]
push eax
call fcn.004b561e
mov edx, dword [esp + 0x44]
pop ecx
pop ecx
test eax, eax
je 0x4b5939
mov eax, dword [esp + 0x78]
mov ecx, edx
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x7c]
mov dword [esi + 0x18], eax
call fcn.004b4878
and ax, word [esp + 0x54]
mov word [esi + 0xc], ax
cmp byte [esp + 0x12], 0x2d
jne 0x4b5949
mov eax, 0x800
or word [esi + 0xa], ax
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4b5a9f
mov ecx, dword [esp + 0x24]
push edx
push eax
lea edx, [esp + 0x80]
call fcn.004b561e
pop ecx
pop ecx
test eax, eax
je 0x4b5a9f
mov eax, dword [esp + 0x74]
test byte [eax + 4], 0x20
jne 0x4b5a9f
mov dword [esp + 0x50], ebx
cmp dword [esi + 0x14], ebx
jl 0x4b5a2f
mov esi, dword [esp + 0x20]
mov edx, edi
push ebx
push ebx
mov ecx, esi
call fcn.004861de
pop ecx
pop ecx
mov dword [esp + 0x68], eax
cmp byte [esi + 0x57], bl
je 0x4b59bc
test eax, eax
je 0x4b627d
mov edx, eax
mov ecx, esi
call fcn.0048602a
jmp 0x4b627d
mov ecx, dword [esp + 0x14]
mov edx, eax
push 3
call fcn.004b471c
pop ecx
test eax, eax
je 0x4b627d
mov ecx, dword [esp + 0x14]
mov edx, eax
push dword [ebp + 8]
imul esi, eax, 0x30
add esi, dword [ecx + 0x18]
mov dword [esp + 0x78], esi
call fcn.004b4c74
add esp, 4
cmp byte [esp + 0x12], 0x2d
jne 0x4b59fd
mov eax, 0x800
or word [esi + 0xa], ax
imul esi, dword [ebp + 8], 0x30
mov edx, dword [esp + 0x68]
push 8
pop eax
add esi, dword [ecx + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], esi
or word [esi + 0xa], ax
call fcn.004b53e3
test eax, eax
je 0x4b5a37
mov eax, 0x800
or word [esi + 0xc], ax
mov dword [esp + 0x50], eax
jmp 0x4b5a37
mov dword [esp + 0x68], edi
mov dword [esp + 0x74], esi
mov esi, dword [esp + 0x68]
mov edx, esi
mov ecx, dword [esp + 0x1c]
call fcn.004b481f
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x4c]
or ecx, dword [esp + 0x64]
or word [edx + 0xa], ax
mov eax, dword [esp + 0x78]
mov dword [edx + 0x14], eax
mov eax, dword [esp + 0x7c]
mov dword [edx + 0x18], eax
mov eax, dword [esp + 0x40]
or eax, dword [esp + 0x58]
mov dword [edx + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [edx + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 0x24], ecx
mov dword [edx + 0x2c], eax
movzx ecx, byte [esi]
call fcn.004b4878
add ax, word [esp + 0x50]
and ax, word [esp + 0x54]
mov word [edx + 0xc], ax
mov edx, dword [esp + 0x18]
jmp 0x4b5f4f
cmp byte [esp + 0x12], 0x32
jne 0x4b5f4d
mov eax, dword [edi + 4]
mov dword [esp + 0x74], eax
test al, 1
jne 0x4b5f4d
mov ecx, dword [esp + 0x38]
call fcn.00487111
mov edx, esi
test eax, eax
jne 0x4b5f4f
mov eax, dword [esp + 0x74]
or eax, 0x20000000
mov byte [edi], 0xaa
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi + 8], 0x420b70
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov word [esi + 0xc], ax
jmp 0x4b5f4f
mov cl, byte [edi]
cmp cl, 0x30
jne 0x4b5bf0
mov eax, dword [esp + 0x14]
cmp byte [eax + 8], 0x2c
jne 0x4b5c18
imul ecx, dword [ebp + 8], 0x30
mov eax, dword [edi + 0x14]
mov esi, dword [esp + 0x14]
add eax, 8
mov dword [esp + 0x68], ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ecx
mov edx, dword [eax]
test edx, edx
je 0x4b5b3f
mov ecx, dword [esp + 0x20]
push ebx
push ebx
call fcn.004861de
pop ecx
pop ecx
mov dword [esp + 0x74], eax
jmp 0x4b5b43
mov dword [esp + 0x74], ebx
mov edx, dword [edi + 0xc]
test edx, edx
je 0x4b5b59
mov ecx, dword [esp + 0x20]
push ebx
push ebx
call fcn.004861de
pop ecx
pop ecx
jmp 0x4b5b5b
mov eax, ebx
push dword [esp + 0x74]
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x70]
movzx edx, byte [eax + 0x42400c]
call fcn.00485bff
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x4b5b8d
mov eax, dword [edi + 4]
and eax, 3
je 0x4b5b8d
or dword [edx + 4], eax
mov eax, dword [edi + 0x24]
mov dword [edx + 0x24], eax
push 3
mov ecx, esi
call fcn.004b471c
mov edx, dword [esp + 0x18]
mov esi, eax
pop ecx
mov ecx, dword [esp + 0x24]
push esi
call fcn.004b5697
mov eax, dword [esp + 0x18]
mov edx, esi
mov esi, dword [esp + 0x18]
pop ecx
push dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov ecx, esi
add eax, dword [esp + 0x54]
mov dword [esp + 0x1c], eax
call fcn.004b4c74
mov ecx, dword [esp + 0x6c]
add esp, 4
mov eax, dword [esp + 0x54]
inc ecx
add eax, 0x14
mov dword [esp + 0x68], ecx
mov dword [esp + 0x54], eax
cmp ecx, 2
jl 0x4b5b26
mov edx, dword [esp + 0x18]
jmp 0x4b5f53
cmp cl, 0x2b
jne 0x4b5c14
push dword [ebp + 8]
mov esi, dword [esp + 0x18]
mov edx, esi
mov ecx, dword [esp + 0x28]
call fcn.004b4ddf
imul edx, dword [ebp + 8], 0x30
pop ecx
add edx, dword [esi + 0x18]
jmp 0x4b5f53
mov eax, dword [esp + 0x14]
cmp cl, 0x33
jne 0x4b5cf5
mov eax, dword [edi + 0xc]
mov dword [esp + 0x74], eax
cmp byte [eax], 0xa7
jne 0x4b5f4d
cmp word [eax + 0x20], bx
jl 0x4b5f4d
test byte [edi + 4], 1
jne 0x4b5f4d
test eax, eax
je 0x4b5c5c
mov ecx, dword [esp + 0x20]
mov edx, eax
push ebx
push ebx
call fcn.004861de
pop ecx
pop ecx
mov esi, eax
jmp 0x4b5c5e
mov esi, ebx
mov ecx, dword [esp + 0x20]
push ebx
push ebx
push 0x79
pop edx
call fcn.00485a5b
mov ecx, dword [esp + 0x24]
push eax
push esi
push 0x36
pop edx
call fcn.00485bff
mov esi, dword [esp + 0x24]
mov edx, eax
push 0x83
mov ecx, esi
call fcn.004b471c
add esp, 0x14
mov dword [esp + 0x68], eax
test eax, eax
je 0x4b5be7
mov edx, dword [esp + 0x74]
imul esi, eax, 0x30
mov eax, dword [esp + 0x14]
push 4
add esi, dword [eax + 0x18]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov ecx, dword [edx + 0x1c]
mov dword [esi + 0x14], ecx
movsx eax, word [edx + 0x20]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x18], eax
pop eax
push dword [ebp + 8]
mov word [esi + 0xc], ax
call fcn.004b4c74
imul edx, dword [ebp + 8], 0x30
add esp, 4
push 8
add edx, dword [ecx + 0x18]
pop eax
or word [edx + 0xa], ax
mov eax, dword [edx + 0x28]
mov ecx, dword [edx + 0x2c]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
jmp 0x4b5f4f
cmp cl, 0xac
jne 0x4b5f4d
cmp byte [eax + 8], 0x2c
jne 0x4b5f4d
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x54]
mov edx, edi
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004b48a2
add esp, 0xc
test eax, eax
je 0x4b5f4d
mov eax, dword [edi + 0x14]
mov ecx, dword [esp + 0x34]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x74], eax
test ecx, ecx
je 0x4b5d58
push ebx
mov edx, ecx
mov ecx, dword [esp + 0x24]
push ebx
call fcn.004861de
pop ecx
pop ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x4c], eax
jmp 0x4b5d5c
mov dword [esp + 0x4c], ebx
cmp dword [esp + 0x54], ebx
je 0x4b5dc0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
cmp byte [eax + 0x57], bl
jne 0x4b5dc0
mov eax, 0x400
or word [esi + 0xa], ax
mov esi, ebx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x68], ecx
mov cl, byte [ecx]
test cl, cl
je 0x4b5dc0
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x68]
movzx edx, cl
mov al, byte [edx + 0x425178]
and al, 0x20
not al
and al, cl
mov byte [ebx + esi], al
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 8]
mov al, byte [edx + 0x425d20]
mov byte [esi + ecx], al
inc esi
mov ebx, dword [edi + 8]
mov cl, byte [ebx + esi]
test cl, cl
jne 0x4b5d8d
mov edi, dword [esp + 0x78]
xor ebx, ebx
mov ecx, dword [esp + 0x20]
cmp byte [ecx + 0x57], 0
jne 0x4b5e08
mov eax, dword [esp + 0x4c]
mov esi, dword [eax + 8]
mov ecx, esi
call fcn.0045c53b
cmp dword [esp + 0x54], 0
mov ecx, dword [esp + 0x50]
lea edx, [eax + esi]
mov al, byte [edx - 1]
je 0x4b5df9
xor esi, esi
cmp al, 0x40
movzx eax, al
cmove ecx, esi
mov al, byte [eax + 0x425d20]
inc al
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x20]
mov byte [edx - 1], al
jmp 0x4b5e10
mov eax, dword [esp + 0x50]
mov dword [esp + 0x68], eax
cmp dword [esp + 0x54], 0
mov eax, 0x4256c0
mov esi, 0x43288c
cmove esi, eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x78], esi
test eax, eax
je 0x4b5e3b
push ebx
push ebx
mov edx, eax
call fcn.004861de
pop ecx
pop ecx
jmp 0x4b5e3d
mov eax, ebx
push dword [esp + 0x34]
mov edx, eax
push ecx
mov ecx, dword [esp + 0x24]
push esi
call fcn.00485242
pop ecx
pop ecx
mov ecx, dword [esp + 0x20]
push eax
push 0x39
pop edx
call fcn.00485bff
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x4b5e76
mov eax, dword [edi + 4]
and eax, 3
je 0x4b5e76
or dword [edx + 4], eax
mov eax, dword [edi + 0x24]
mov dword [edx + 0x24], eax
mov esi, dword [esp + 0x14]
mov ecx, esi
push 0x103
call fcn.004b471c
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x78]
pop ecx
test eax, eax
je 0x4b5ea4
mov ecx, dword [esp + 0x20]
mov edx, eax
push ebx
push ebx
call fcn.004861de
pop ecx
pop ecx
jmp 0x4b5ea6
mov eax, ebx
push dword [esp + 0x4c]
mov edx, eax
push ecx
push dword [esp + 0x80]
mov ecx, dword [esp + 0x28]
call fcn.00485242
pop ecx
pop ecx
mov ecx, dword [esp + 0x20]
push eax
push 0x38
pop edx
call fcn.00485bff
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x4b5ee5
mov eax, dword [edi + 4]
and eax, 3
je 0x4b5ee5
or dword [edx + 4], eax
mov eax, dword [edi + 0x24]
mov dword [edx + 0x24], eax
push 0x103
mov ecx, esi
call fcn.004b471c
pop ecx
push dword [esp + 0x54]
mov ecx, dword [esp + 0x28]
mov edx, esi
mov dword [esp + 0x78], eax
call fcn.004b5697
pop ecx
push dword [esp + 0x74]
mov ecx, dword [esp + 0x28]
mov edx, esi
call fcn.004b5697
mov eax, dword [ebp + 8]
imul edx, eax, 0x30
pop ecx
add edx, dword [esi + 0x18]
cmp dword [esp + 0x68], 0
mov dword [esp + 0x18], edx
je 0x4b5f53
mov edx, dword [esp + 0x54]
mov ecx, esi
push eax
call fcn.004b4c74
mov edx, dword [esp + 0x78]
add esp, 4
push dword [ebp + 8]
call fcn.004b4c74
add esp, 4
jmp 0x4b5be7
mov edx, esi
mov esi, dword [esp + 0x14]
mov al, byte [edi]
cmp al, 0x35
je 0x4b5f61
cmp al, 0x2d
jne 0x4b603c
mov ecx, dword [edi + 0xc]
call fcn.00485543
mov dword [esp + 0x68], eax
cmp eax, 1
jle 0x4b603a
mov ecx, dword [edi + 0x10]
call fcn.00485543
mov ecx, dword [esp + 0x68]
cmp eax, ecx
jne 0x4b603a
mov eax, dword [edi + 0xc]
test dword [eax + 4], 0x1000
je 0x4b5fa6
mov eax, dword [edi + 0x10]
test dword [eax + 4], 0x1000
jne 0x4b603a
cmp byte [esi + 8], 0x2c
jne 0x4b603a
mov edx, dword [edi + 0xc]
push ecx
mov ecx, dword [esp + 0x20]
push ebx
call fcn.00485596
push dword [esp + 0x70]
mov edx, dword [edi + 0x10]
mov esi, eax
mov ecx, dword [esp + 0x28]
push ebx
call fcn.00485596
movzx edx, byte [edi]
mov ecx, dword [esp + 0x2c]
push eax
push esi
call fcn.00485bff
mov edx, eax
add esp, 0x18
test edx, edx
je 0x4b5ff9
mov eax, dword [edi + 4]
and eax, 3
je 0x4b5ff9
or dword [edx + 4], eax
mov eax, dword [edi + 0x24]
mov dword [edx + 0x24], eax
mov esi, dword [esp + 0x14]
mov ecx, esi
push 0x8001
call fcn.004b471c
pop ecx
mov ecx, dword [esp + 0x24]
mov edx, esi
push eax
call fcn.004b5697
pop ecx
mov ecx, dword [esp + 0x68]
inc ebx
cmp ebx, ecx
jl 0x4b5fb0
imul eax, dword [ebp + 8], 0x30
mov ecx, 0x2000
add eax, dword [esi + 0x18]
or word [eax + 0xa], 6
mov word [eax + 0xc], cx
jmp 0x4b6268
mov al, byte [edi]
cmp al, 0x31
jne 0x4b60e1
cmp dword [edx + 0x1c], ebx
jne 0x4b60e1
mov ecx, dword [edi + 0xc]
cmp byte [ecx], 0xb1
jne 0x4b60e1
mov eax, 0x1000
test dword [edi + 4], eax
je 0x4b60e1
mov eax, dword [edi + 0x14]
cmp dword [eax + 0x34], ebx
je 0x4b6074
test dword [eax + 4], 0x200
je 0x4b60e1
cmp dword [eax + 0x44], ebx
jne 0x4b60e1
cmp byte [esi + 8], 0x2c
jne 0x4b6268
call fcn.00485543
test eax, eax
jle 0x4b6268
push 0x8002
mov edx, edi
mov ecx, esi
call fcn.004b471c
mov esi, eax
inc ebx
mov eax, dword [esp + 0x18]
imul edx, esi, 0x30
pop ecx
push esi
mov ecx, dword [eax + 0x18]
mov dword [edx + ecx + 0x1c], ebx
mov edx, eax
mov ecx, dword [esp + 0x28]
call fcn.004b5697
pop ecx
push dword [ebp + 8]
mov edx, esi
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.004b4c74
mov ecx, dword [edi + 0xc]
add esp, 4
call fcn.00485543
cmp ebx, eax
jl 0x4b6090
jmp 0x4b6268
cmp byte [esi + 8], 0x2c
jne 0x4b6268
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x78], ebx
push eax
lea eax, [esp + 0x1b]
mov dword [esp + 0x70], ebx
push eax
mov edx, edi
call fcn.004b4b15
mov edx, eax
add esp, 0xc
test edx, edx
jle 0x4b6268
imul eax, dword [ebp + 8], 0x30
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x4c], eax
dec edx
mov dword [esp + 0x74], edx
test eax, eax
je 0x4b6150
mov ecx, dword [esp + 0x28]
mov edx, eax
call fcn.004b6599
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x50], edx
jmp 0x4b6165
xorps xmm0, xmm0
movlpd qword [esp + 0x68], xmm0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x68], eax
test ecx, ecx
je 0x4b617a
mov edx, ecx
mov ecx, dword [esp + 0x28]
call fcn.004b6599
jmp 0x4b618b
xorps xmm0, xmm0
movlpd qword [esp + 0x40], xmm0
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
and eax, dword [esp + 0x68]
and edx, dword [esp + 0x50]
or eax, edx
jne 0x4b624c
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4b61b4
mov ecx, dword [esp + 0x20]
mov edx, eax
push ebx
push ebx
call fcn.004861de
pop ecx
pop ecx
jmp 0x4b61b6
mov eax, ebx
mov ecx, dword [esp + 0x1c]
push eax
push ebx
push 0x2e
pop edx
call fcn.00485bff
test byte [edi + 4], 1
pop ecx
pop ecx
je 0x4b61da
test eax, eax
je 0x4b61da
or dword [eax + 4], 1
mov ecx, dword [edi + 0x24]
mov dword [eax + 0x24], ecx
push 3
mov edx, eax
mov ecx, esi
call fcn.004b471c
mov edx, eax
mov eax, dword [esp + 0x18]
imul esi, edx, 0x30
pop ecx
push 0x40
add esi, dword [eax + 0x18]
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x54]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x1c]
mov dword [esi + 0x14], ecx
movsx eax, word [eax + 0x20]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x18], eax
pop eax
push dword [ebp + 8]
mov word [esi + 0xc], ax
mov al, byte [esp + 0x17]
mov byte [esi + 0xf], al
call fcn.004b4c74
mov ecx, dword [ecx + 0x18]
add esp, 4
add ecx, dword [esp + 0x78]
push 8
pop eax
or word [ecx + 0xa], ax
mov eax, dword [ecx + 0x28]
mov ecx, dword [ecx + 0x2c]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x4c], eax
test edx, edx
jg 0x4b6132
imul eax, dword [ebp + 8], 0x30
mov ecx, dword [esp + 0x58]
add eax, dword [esi + 0x18]
or dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x64]
or dword [eax + 0x24], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret