Function at 0x475a80
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x5582e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x55b690]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0x3ea0]
mov dword [ebp - 0x34], ebx
and byte [edi + 0xa0], 0xfb
cmp dword [edi + 0x18], 0
mov dword [edi + 0x84], eax
mov dword [edi + 0x7c], 0
mov dword [edi + 0x78], 0
jne 0x475b9e
push edi
call fcn.004766a0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x3c], 0
push eax
xorps xmm0, xmm0
push edi
movq qword [ebp - 0x44], xmm0
call fcn.004733a0
mov ecx, dword [ebp - 0x3c]
xor eax, eax
mov esi, dword [ebp - 0x40]
add esp, 0xc
mov edx, dword [ebp - 0x44]
cmp ecx, 1
mov dword [edi + 0x78], edx
cmove eax, esi
mov dword [edi + 0x80], ecx
cmp dword [edi + 0x90], 0
mov dword [edi + 0x7c], eax
jne 0x475b1e
test esi, esi
je 0x475b87
mov eax, dword [esi]
mov dword [edi + 0x90], eax
test esi, esi
je 0x475b87
mov eax, dword [esi + 0x2c]
mov ecx, 1
mov eax, dword [eax]
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edi + 0x50], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [edi + 0x60], xmm0
mov eax, dword [eax + 0x28]
mov dword [edi + 0x68], eax
mov ebx, dword [esi + 0x24]
cmp ebx, ecx
jle 0x475b84
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x28], eax
lea esi, [eax + 4]
mov eax, dword [esi]
cmp byte [eax + 0x29], 0
je 0x475b66
inc ecx
add esi, 4
cmp ecx, ebx
jl 0x475b54
jmp 0x475b84
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + ecx*4]
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edi + 0x50], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [edi + 0x60], xmm0
mov eax, dword [eax + 0x28]
mov dword [edi + 0x68], eax
mov ebx, dword [ebp - 0x34]
test edx, edx
je 0x475b9e
nop dword [eax + eax]
or byte [edx + 0xa0], 0x20
mov edx, dword [edx + 0x18]
test edx, edx
jne 0x475b90
cmp dword [edi + 0x30], 0
je 0x475bb7
mov eax, dword [edi + 0x10]
shr eax, 0xc
test al, 1
je 0x475bb7
push edi
call fcn.00474630
add esp, 4
mov ecx, dword [edi + 0x18]
xor dl, dl
test ecx, ecx
jne 0x475d06
test dword [edi + 0x10], 0x400
jne 0x475d06
mov ecx, dword [edi + 0x24]
lea esi, [edi + 0x24]
cmp ecx, 1
jg 0x475bf7
cmp dword [edi + 0x1c], 0
jne 0x475bf7
cmp byte [ebx + 0x5a], dl
jne 0x475bf7
test ecx, ecx
je 0x475bf5
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
cmp byte [eax + 0x28], dl
jne 0x475bf7
mov dl, 1
cmp dword [edi + 0x80], 0
je 0x475c0c
test dl, dl
jne 0x475c0c
mov ecx, dword [edi + 0x18]
jmp 0x475d09
cmp ecx, 1
jne 0x475c9b
mov eax, dword [edi + 0x2c]
mov esi, dword [eax]
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], ecx
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov dword [edi + 0x3c], eax
mov eax, dword [edi + 0x9c]
and eax, 0xfffffebf
mov dword [edi + 0x40], ecx
or eax, 0x80
and eax, 0xffffffd7
or eax, 0x10
and eax, 0xfffffffa
or eax, 2
mov dword [edi + 0x9c], eax
mov eax, dword [edi + 0x70]
test eax, eax
je 0x475c6c
cmp dword [ebx + 0x4120], eax
jne 0x475c6c
push esi
call fcn.0047a930
add esp, 4
mov eax, dword [edi + 0x70]
test eax, eax
je 0x475c98
mov ecx, dword [eax + 0x2c]
mov dword [esi + 0x2c], ecx
mov eax, dword [edi + 0x70]
mov eax, dword [eax + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x70]
cmp byte [eax + 0xc2], 0
je 0x475c98
mov dword [ecx + 0x6c], esi
mov byte [esi + 0xc2], 1
lea esi, [edi + 0x24]
push edi
call fcn.00473420
mov al, byte [edi + 0xa0]
add esp, 4
and al, 0xbf
mov dword [edi + 0x14], 1
and al, 0xe7
mov dword [edi + 0x98], 0
test byte [edi + 0xa1], 1
mov byte [edi + 0xa0], al
mov eax, dword [ebx + 0x3ea0]
mov dword [edi + 0x88], eax
je 0x47668e
cmp dword [esi], 1
jne 0x47668e
mov eax, dword [edi + 0x2c]
push dword [eax]
push edi
call fcn.004748c0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501271
mov esp, ebp
pop ebp
ret
lea esi, [edi + 0x24]
mov al, byte [edi + 0xa0]
mov ebx, esi
mov dword [ebp - 0x30], ebx
test al, 1
je 0x475db2
cmp dword [edi + 0x70], 0
mov dword [ebp - 0x30], ebx
jne 0x475db2
test ecx, ecx
jne 0x475da5
test dword [edi + 0x10], 0x400
jne 0x475da5
mov dword [ebp - 0x30], ebx
cmp dword [edi + 0x1c], ecx
jne 0x475db2
mov esi, dword [edi + 0x94]
test esi, esi
je 0x475d70
lea ebx, [edi + 0x24]
mov dword [ebp - 0x30], ebx
cmp dword [ebx], ecx
jle 0x475d70
mov edx, dword [edi + 0x2c]
mov eax, dword [edx]
cmp dword [eax + 4], esi
je 0x475d66
inc ecx
add edx, 4
cmp ecx, dword [ebx]
jl 0x475d55
jmp 0x475d70
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + ecx*4]
test eax, eax
jne 0x475d7b
mov eax, dword [edi + 0x2c]
lea ebx, [edi + 0x24]
mov dword [ebp - 0x30], ebx
mov eax, dword [eax]
cmp byte [eax + 0xdc], 0
jg 0x475d8d
cmp byte [eax + 0xdd], 0
jle 0x475dac
mov dword [edi + 0x14], 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501271
mov esp, ebp
pop ebp
ret
mov ebx, esi
mov dword [ebp - 0x30], ebx
jmp 0x475db2
mov al, byte [edi + 0xa0]
mov ecx, dword [ebx]
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x38], edx
test ecx, ecx
jle 0x475dd4
test edx, 0x4000
jne 0x475dd4
and al, 0xf7
or al, 0x10
xor esi, esi
mov byte [edi + 0xa0], al
jmp 0x475de4
and al, 0xe7
xor esi, esi
mov byte [edi + 0xa0], al
mov eax, edx
test ecx, ecx
jle 0x475e29
mov eax, dword [edi + 0x2c]
mov edx, dword [eax + esi*4]
mov al, byte [edi + 0xa0]
mov cl, byte [edx + 0xcd]
shl cl, 3
or cl, al
xor cl, al
and cl, 8
xor cl, al
cmp dword [ebx], 1
mov byte [edi + 0xa0], cl
mov al, byte [edx + 0x369]
setg cl
and al, 0xfe
inc esi
or cl, al
mov byte [edx + 0x369], cl
cmp esi, dword [ebx]
jl 0x475de4
mov eax, dword [edi + 0x10]
mov edx, dword [ebp - 0x38]
test edx, 0x8000
je 0x475e38
and byte [edi + 0xa0], 0xf7
xor ebx, ebx
shr eax, 0xa
mov byte [ebp - 0x19], bl
test al, 1
je 0x475e4c
mov ebx, dword [edi + 0x70]
jmp 0x4760fc
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x476090
test byte [edi + 0xa0], 1
je 0x4760a0
mov eax, dword [ebp - 0x30]
cmp dword [eax], ebx
jle 0x475e72
mov eax, dword [edi + 0x2c]
mov esi, dword [eax]
jmp 0x475e74
xor esi, esi
mov eax, dword [edi + 0x9c]
shl eax, 0x1d
sar eax, 0x1d
cmp eax, 2
jne 0x475e9e
test esi, esi
je 0x475ede
mov edx, dword [0x55b690]
or dword [edx + 0x3fec], 1
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
jmp 0x475eb5
cmp eax, 1
jne 0x475ede
mov edx, dword [0x55b690]
or dword [edx + 0x3fec], eax
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x38]
mov byte [edx + 0x4028], 1
mov dword [edx + 0x3ff0], 1
mov dword [edx + 0x400c], ebx
mov dword [edx + 0x4008], ebx
mov dword [edx + 0x4004], ecx
mov dword [edx + 0x4000], eax
mov eax, dword [edi + 0x9c]
shl eax, 0x1a
sar eax, 0x1d
cmp eax, 2
jne 0x475f07
test esi, esi
je 0x475f35
mov edx, dword [0x55b690]
or dword [edx + 0x3fec], eax
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
jmp 0x475f1f
cmp eax, 1
jne 0x475f35
mov edx, dword [0x55b690]
or dword [edx + 0x3fec], 2
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x40]
mov dword [edx + 0x3ff4], 1
mov dword [edx + 0x4014], ecx
mov dword [edx + 0x4010], eax
mov eax, dword [edi + 0x9c]
and al, 0x38
cmp al, 0x10
jne 0x475f68
test esi, esi
je 0x475f68
mov ecx, dword [0x55b690]
mov al, byte [esi + 0xc6]
or dword [ecx + 0x3fec], 8
mov byte [ecx + 0x4029], al
mov dword [ecx + 0x3ff8], 1
mov eax, dword [edi + 0x9c]
and eax, 0x1c0
cmp eax, 0x80
jne 0x475f96
test esi, esi
je 0x475f96
mov eax, dword [0x55b690]
mov ecx, dword [esi + 0x30]
or dword [eax + 0x3fec], 0x100
mov dword [eax + 0x4048], ecx
mov ecx, dword [0x55b690]
or dword [ecx + 0x3fec], 0x400
movups xmm0, xmmword [edi + 0x50]
movups xmmword [ecx + 0x4050], xmm0
movq xmm0, qword [edi + 0x60]
movq qword [ecx + 0x4060], xmm0
mov eax, dword [edi + 0x68]
mov dword [ecx + 0x4068], eax
lea eax, [ebp - 0x18]
push dword [edi]
push str.DockNode__02X
push 0x14
push eax
call fcn.0047cb50
mov eax, dword [0x55b690]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
or dword [eax + 0x3fec], 0x40
mov dword [eax + 0x4044], ebx
lea eax, [ebp - 0x40]
push eax
push 2
call fcn.004851d0
push 0x20081139
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.004678d0
push 1
call fcn.00484890
mov ebx, dword [ebp - 0x34]
add esp, 0x28
mov eax, dword [edi + 0x70]
mov byte [ebp - 0x19], 1
mov ebx, dword [ebx + 0x3f04]
test eax, eax
je 0x476040
cmp eax, ebx
je 0x476040
cmp dword [eax + 0x388], edi
jne 0x476040
mov dword [eax + 0x388], 0
mov dword [ebx + 0x388], edi
mov dword [edi + 0x70], ebx
movss xmm0, dword [ebx + 0x40]
movss xmm1, dword [ebx + 0x44]
movss dword [ebx + 0x108], xmm0
movss dword [ebx + 0x10c], xmm1
movss dword [edi + 0x34], xmm0
movss dword [edi + 0x38], xmm1
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x4c]
mov dword [edi + 0x3c], eax
mov eax, dword [edi + 0x70]
mov dword [edi + 0x40], ecx
cmp byte [eax + 0xc9], 0
je 0x476096
push eax
call fcn.0046c0a0
add esp, 4
jmp 0x476096
mov ebx, dword [eax + 0x70]
mov dword [edi + 0x70], ebx
and dword [edi + 0x9c], 0xfffffe00
test byte [edi + 0xa1], 1
je 0x4760fc
mov eax, dword [edi + 0x70]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4760fc
mov esi, dword [0x55b690]
push eax
call fcn.0048d540
movss xmm1, dword [esi + 0x3628]
add esp, 4
movss xmm0, dword [esi + 0x362c]
subss xmm1, dword [edi + 0x34]
subss xmm0, dword [edi + 0x38]
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x3f14], eax
movss dword [esi + 0x3f70], xmm1
movss dword [esi + 0x3f74], xmm0
and byte [edi + 0xa1], 0xfe
mov ecx, dword [edi + 0x18]
test ecx, ecx
jne 0x476135
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x4120]
test eax, eax
je 0x476135
mov eax, dword [eax + 0x320]
mov edx, dword [eax + 0x384]
test edx, edx
je 0x476135
cmp dword [eax + 0x318], ebx
jne 0x476135
mov eax, dword [edx]
mov esi, dword [edi + 0x78]
mov dword [edi + 0x90], eax
jmp 0x476140
mov esi, dword [edi + 0x78]
test ecx, ecx
jne 0x476335
mov ecx, dword [ebp - 0x38]
mov edx, esi
mov dword [ebp - 0x20], edx
test ebx, ebx
je 0x476338
mov eax, ecx
and eax, 8
mov dword [ebp - 0x2c], eax
je 0x476338
test esi, esi
je 0x476338
cmp dword [esi + 0x1c], 0
jne 0x476338
cmp dword [esi + 0x24], 0
jne 0x476338
mov eax, dword [0x55b690]
xor esi, esi
mov byte [ebp - 0x21], 1
cmp byte [eax + 0x4290], 0
lea ecx, [eax + 0x42a0]
cmove ecx, esi
mov esi, edx
mov dword [ebp - 0x28], ecx
test ecx, ecx
je 0x476200
cmp dword [ecx + 0x10], 0xffffffff
je 0x4761fe
add ecx, 0x14
mov eax, str._IMWINDOW
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4761d0
test dl, dl
je 0x4761cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4761d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4761b0
xor eax, eax
jmp 0x4761d5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4761fb
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
mov eax, dword [eax]
push dword [eax]
push ebx
call fcn.004734a0
add esp, 8
test al, al
je 0x476200
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
jmp 0x476349
mov edx, dword [ebp - 0x20]
mov esi, edx
mov eax, dword [esi + 0x18]
mov ecx, esi
test eax, eax
je 0x476219
nop dword [eax]
mov ecx, eax
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x476210
movss xmm2, dword [esi + 0x34]
mov eax, esi
comiss xmm2, dword [ecx + 0x34]
mov dword [ebp - 0x28], eax
movss xmm6, dword [ecx + 0x38]
movaps xmm4, xmm2
movss xmm1, dword [eax + 0x38]
movaps xmm7, xmm6
movss xmm5, dword [ecx + 0x34]
movaps xmm3, xmm1
addss xmm5, dword [ecx + 0x3c]
addss xmm7, dword [ecx + 0x40]
addss xmm4, dword [esi + 0x3c]
addss xmm3, dword [esi + 0x40]
movss xmm0, dword [0x50d86c]
jbe 0x476261
addss xmm2, xmm0
comiss xmm5, xmm4
jbe 0x47626a
subss xmm4, xmm0
comiss xmm1, xmm6
jbe 0x476273
addss xmm1, xmm0
comiss xmm7, xmm3
jbe 0x47627c
subss xmm3, xmm0
comiss xmm2, xmm4
ja 0x47632d
comiss xmm1, xmm3
ja 0x47632d
subss xmm4, xmm2
mov esi, dword [ebp - 0x28]
subss xmm3, xmm1
movaps xmm0, xmm2
cvttss2si eax, xmm4
mov word [ebp - 0x20], ax
movzx edx, ax
cvttss2si eax, xmm3
movzx ecx, ax
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x248], eax
subss xmm0, dword [ebx + 0x40]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebx + 0x318]
cvttss2si eax, xmm0
movaps xmm0, xmm1
mov word [ebp - 0x20], ax
subss xmm0, dword [ebx + 0x44]
cvttss2si eax, xmm0
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x24c], eax
test ecx, ecx
je 0x476346
mov eax, dword [ebp - 0x3c]
mov word [ebp - 0x1e], ax
mov word [ebp - 0x20], dx
mov eax, dword [ebp - 0x20]
mov dword [ecx + 0x248], eax
subss xmm2, dword [ecx + 0x40]
subss xmm1, dword [ecx + 0x44]
cvttss2si eax, xmm2
mov word [ebp - 0x20], ax
cvttss2si eax, xmm1
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0x20]
mov dword [ecx + 0x24c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
jmp 0x476349
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
jmp 0x476349
mov ecx, dword [ebp - 0x38]
mov eax, ecx
mov byte [ebp - 0x21], 0
and eax, 8
mov dword [ebp - 0x2c], eax
jmp 0x476349
mov eax, dword [ebp - 0x2c]
cmp dword [edi + 0x18], 0
mov edx, esi
mov dword [ebp - 0x20], edx
mov ecx, eax
jne 0x476393
test ebx, ebx
je 0x4765a2
mov ecx, dword [ebx + 0x284]
push 1
push ecx
add ecx, 0x78
call fcn.004b64c0
push 0
push dword [ebx + 0x4c]
push dword [ebx + 0x48]
push dword [ebx + 0x44]
push dword [ebx + 0x40]
push edi
call fcn.004751f0
push edi
call fcn.004754c0
mov eax, dword [ebp - 0x2c]
add esp, 0x1c
mov edx, esi
jmp 0x47639b
test ebx, ebx
je 0x4765a2
cmp dword [edi + 0x1c], 0
jne 0x476454
mov ecx, dword [ebp - 0x30]
cmp dword [ecx], 0
jne 0x476454
test byte [edi + 0xa0], 1
mov ecx, eax
mov esi, edx
je 0x476456
mov ecx, dword [ebx + 0x284]
push 0
push ecx
add ecx, 0x78
call fcn.004b64c0
mov ecx, dword [ebp - 0x38]
and ecx, 8
mov dword [ebp - 0x28], ecx
je 0x4763f1
or byte [edi + 0xa0], 4
mov esi, dword [ebp - 0x20]
mov dword [edi + 0x6c], 0
jmp 0x476456
push ecx
mov dword [esp], 0x3f800000
push 0x27
call fcn.0047ad00
add esp, 8
mov dword [edi + 0x6c], eax
test eax, eax
je 0x476445
movss xmm0, dword [edi + 0x3c]
lea ecx, [edi + 0x34]
addss xmm0, dword [ecx]
push 0
push ecx
mov dword [esp], 0
push eax
movss dword [ebp - 0x40], xmm0
lea eax, [ebp - 0x40]
movss xmm0, dword [edi + 0x40]
addss xmm0, dword [ecx + 4]
push eax
push ecx
mov ecx, dword [ebx + 0x284]
movss dword [ebp - 0x3c], xmm0
call fcn.004b0240
mov ecx, dword [ebp - 0x28]
or byte [edi + 0xa0], 4
mov esi, dword [ebp - 0x20]
jmp 0x476456
mov ecx, eax
test ebx, ebx
je 0x4765a2
cmp dword [edi + 0x18], 0
jne 0x47657d
test ecx, ecx
je 0x47657d
test byte [edi + 0xa0], 1
je 0x47657d
mov ecx, dword [ebx + 0x284]
push 0
push ecx
add ecx, 0x78
call fcn.004b64c0
cmp byte [ebp - 0x21], 0
je 0x47652d
movss xmm1, dword [esi + 0x34]
sub esp, 8
movss xmm0, dword [esi + 0x38]
movss dword [ebp - 0x48], xmm1
addss xmm1, dword [esi + 0x3c]
movss dword [ebp - 0x44], xmm0
addss xmm0, dword [esi + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 0x3f800000
movss dword [ebp - 0x40], xmm1
movss xmm1, dword [edi + 0x34]
movss dword [ebp - 0x3c], xmm0
movss xmm0, dword [edi + 0x38]
movss dword [ebp - 0x58], xmm1
addss xmm1, dword [edi + 0x3c]
movss dword [ebp - 0x54], xmm0
addss xmm0, dword [edi + 0x40]
push 2
movss dword [ebp - 0x50], xmm1
movss dword [ebp - 0x4c], xmm0
call fcn.0047ad00
movups xmm0, xmmword [ebp - 0x48]
add esp, 8
push eax
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x58]
push dword [ebx + 0x284]
movups xmmword [eax], xmm0
call fcn.004b5af0
add esp, 0x2c
jmp 0x47657d
movss xmm0, dword [edi + 0x34]
addss xmm0, dword [edi + 0x3c]
push 0
sub esp, 8
movss dword [ebp - 0x40], xmm0
movss xmm0, dword [edi + 0x38]
addss xmm0, dword [edi + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 0x3f800000
push 2
movss dword [ebp - 0x3c], xmm0
call fcn.0047ad00
mov ecx, dword [ebx + 0x284]
add esp, 8
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [edi + 0x34]
push eax
call fcn.004b0240
mov ecx, dword [ebx + 0x284]
push 1
push ecx
add ecx, 0x78
call fcn.004b64c0
mov esi, dword [ebp - 0x30]
cmp dword [esi], 0
jle 0x4765a5
push ebx
push edi
call fcn.00476930
add esp, 8
jmp 0x4765bf
mov esi, dword [ebp - 0x30]
mov al, byte [edi + 0xa0]
and al, 0xbf
mov dword [edi + 0x98], 0
and al, 0xfd
mov byte [edi + 0xa0], al
mov eax, dword [edi + 0x30]
test eax, eax
je 0x4765cd
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4765da
cmp dword [esi], 0
jle 0x4765e0
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi + 0x94], eax
test ebx, ebx
je 0x47661f
test byte [edi + 0xa0], 1
je 0x47661f
cmp dword [edi + 0x18], 0
jne 0x47661f
mov esi, dword [ebp - 0x34]
mov eax, dword [esi + 0x3f14]
test eax, eax
je 0x476608
cmp dword [eax + 0x328], ebx
je 0x47661f
push ebx
call fcn.0046a990
mov eax, dword [esi + 0x3ea0]
add esp, 4
mov dword [edi + 0x88], eax
jmp 0x476632
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x3ea0]
mov dword [edi + 0x88], eax
test ebx, ebx
je 0x476683
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x476642
push eax
call fcn.00475a80
add esp, 4
mov eax, dword [edi + 0x20]
test eax, eax
je 0x476652
push eax
call fcn.00475a80
add esp, 4
cmp dword [edi + 0x18], 0
jne 0x476672
mov ecx, dword [ebx + 0x284]
push 1
push ecx
add ecx, 0x78
call fcn.004b64c0
push ebx
call fcn.004879d0
add esp, 4
mov ecx, dword [ebx + 0x284]
push 0
push ecx
add ecx, 0x78
call fcn.004b64c0
cmp byte [ebp - 0x19], 0
je 0x47668e
call fcn.00478c40
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501271
mov esp, ebp
pop ebp
ret