Function at 0x4c2790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0xcc
call fcn.00525ec0
mov eax, dword [0x5af1b4]
xor eax, esp
mov dword [esp + 0xc8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
xor esi, esi
shr eax, 3
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 0x10]
push edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x50], 2
cmp eax, 0x14
je 0x4c2804
cmp eax, 0x1c
je 0x4c2804
cmp eax, 0x20
je 0x4c2804
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00511c1b
mov esp, ebp
pop ebp
ret
cmp edx, esi
jne 0x4c2810
mov dword [esp + 0x28], 0x574308
cmp ecx, 0x200
jae 0x4c281d
mov ecx, 0x200
add ecx, 0x3f
shr ecx, 6
shl ecx, 6
mov dword [ebp + 8], ecx
call fcn.0046e820
mov dword [esp + 0xc], eax
cmp eax, esi
je 0x4c3505
call fcn.0049d120
mov dword [esp + 0x18], eax
test eax, eax
je 0x4c32b1
mov esi, dword [esp + 0xc]
call fcn.0046e960
call fcn.0046e9f0
mov dword [esp + 0x10], eax
call fcn.0046e9f0
mov dword [esp + 0x2c], eax
call fcn.0046e9f0
mov dword [esp + 0x14], eax
call fcn.0046e9f0
mov dword [esp + 0x20], eax
call fcn.0046e9f0
mov dword [esp + 0x30], eax
call fcn.0046e9f0
mov dword [esp + 0x4c], eax
call fcn.0046e9f0
mov dword [esp + 0x24], eax
call fcn.0046e9f0
mov ecx, dword [ebp + 8]
push 0x5743a4
dec ecx
push eax
mov dword [esp + 0x24], eax
call fcn.0049e4c0
add esp, 8
test eax, eax
je 0x4c32b1
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov edi, edi
test ebx, ebx
je 0x4c28f5
mov eax, dword [ebx]
sub eax, 1
je 0x4c28e2
sub eax, 1
je 0x4c28d4
xor eax, eax
jmp 0x4c28fa
mov eax, dword [ebx + 8]
push ebx
push esi
push 0
call eax
add esp, 0xc
jmp 0x4c28fa
mov eax, dword [ebx + 8]
test eax, eax
je 0x4c28f5
mov ecx, dword [ebx + 4]
push ecx
push esi
push 0
call eax
add esp, 0xc
mov eax, 1
inc esi
mov dword [esp + 0x34], esi
test eax, eax
je 0x4c32b1
mov ecx, dword [0x5bdfbc]
test ecx, ecx
jne 0x4c2947
push 1
mov ecx, 0x5be08c
call fcn.004b5f20
add esp, 4
test eax, eax
je 0x4c293c
mov ecx, dword [eax + 0x1c]
mov dword [0x5bdfbc], ecx
test ecx, ecx
jne 0x4c2a4b
mov ecx, eax
call fcn.00475a90
mov ecx, 0x5b5550
mov dword [0x5bdfbc], ecx
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x4c295c
lea edx, [esp + 0x94]
push edi
push edx
call ecx
add esp, 8
push edi
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x7c]
push ecx
call fcn.005165f0
add esp, 0xc
push edi
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0xbc]
push eax
call fcn.005165f0
lea eax, [edi - 1]
add esp, 0xc
test eax, eax
jl 0x4c299e
add byte [esp + eax + 0x74], 1
jne 0x4c299e
sub eax, 1
jns 0x4c2992
mov ecx, dword [esp + 0x28]
push ecx
push 0
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0xa0]
push edi
push eax
call fcn.00474180
add esp, 0x14
test eax, eax
je 0x4c32b1
mov ecx, dword [esp + 0x28]
push ecx
push 0
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0x80]
push edi
push eax
call fcn.00474180
add esp, 0x14
test eax, eax
je 0x4c32b1
xor eax, eax
test edi, edi
jle 0x4c2a01
mov cl, byte [esp + eax + 0xb4]
xor byte [esp + eax + 0x54], cl
inc eax
cmp eax, edi
jl 0x4c29f1
or byte [esp + 0x54], 0x80
mov ecx, dword [esp + 0x20]
or byte [esp + edi + 0x53], 1
lea edx, [esp + 0x54]
push edx
mov edx, edi
call fcn.00465520
add esp, 4
test eax, eax
je 0x4c32b1
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
push ebx
push 1
push eax
push 0x32
call fcn.00492140
add esp, 0x10
test eax, eax
jg 0x4c2a55
je 0x4c28c0
jmp 0x4c32b1
mov dword [0x5bdfb8], eax
jmp 0x4c2947
test ebx, ebx
je 0x4c2aa9
mov eax, dword [ebx]
sub eax, 1
je 0x4c2b6b
sub eax, 1
jne 0x4c32b1
mov ecx, dword [ebx + 8]
push ebx
push eax
push 2
call ecx
add esp, 0xc
test eax, eax
je 0x4c32b1
mov eax, dword [ebx]
sub eax, 1
je 0x4c2b88
sub eax, 1
jne 0x4c32b1
push ebx
push eax
mov eax, dword [ebx + 8]
push 3
call eax
add esp, 0xc
test eax, eax
je 0x4c32b1
mov edx, dword [ebp + 8]
dec edx
mov eax, 0xcccccccd
mul edx
shr edx, 7
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], edx
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x4c2af6
test ebx, ebx
je 0x4c2af6
mov eax, dword [ebx]
sub eax, 1
je 0x4c2ba5
sub eax, 1
jne 0x4c32b1
push ebx
push ecx
push eax
mov eax, dword [ebx + 8]
call eax
add esp, 0xc
test eax, eax
je 0x4c32b1
mov eax, dword [esp + 0x14]
cmp dword [eax + 8], 1
jge 0x4c2b5d
push 1
push eax
call fcn.004652b0
mov edi, eax
add esp, 8
test edi, edi
je 0x4c2bc1
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx]
test esi, esi
je 0x4c2b4c
mov eax, dword [0x5be044]
test eax, eax
je 0x4c2b30
push 0
push esi
call eax
add esp, 8
push esi
call dword [0x5b65dc]
mov eax, dword [0x5be044]
add esp, 4
test eax, eax
je 0x4c2b4c
push 1
push 0
call eax
add esp, 8
mov eax, dword [esp + 0x14]
mov dword [eax], edi
mov edi, dword [esp + 0x38]
mov dword [eax + 8], 1
mov edx, dword [eax]
xor ecx, ecx
mov dword [eax + 0xc], ecx
mov dword [edx], ecx
mov dword [eax + 4], ecx
jmp 0x4c2bc5
mov eax, dword [ebx + 8]
test eax, eax
je 0x4c2a81
mov edx, dword [ebx + 4]
push edx
push 0
push 2
call eax
add esp, 0xc
jmp 0x4c2a81
mov eax, dword [ebx + 8]
test eax, eax
je 0x4c2aa9
mov ecx, dword [ebx + 4]
push ecx
push 0
push 3
call eax
add esp, 0xc
jmp 0x4c2aa9
mov eax, dword [ebx + 8]
test eax, eax
je 0x4c2af6
mov edx, dword [ebx + 4]
push edx
push ecx
push 0
call eax
add esp, 0xc
jmp 0x4c2af6
mov edi, dword [esp + 0x38]
xor esi, esi
cmp dword [esp + 0x48], esi
jl 0x4c2c6a
lea eax, [edi - 1]
test eax, eax
jl 0x4c2be4
add byte [esp + eax + 0x74], 1
jne 0x4c2be4
sub eax, 1
jns 0x4c2bd8
mov eax, dword [esp + 0x28]
push eax
push 0
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x80]
push edi
push edx
call fcn.00474180
add esp, 0x14
test eax, eax
je 0x4c32b1
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x54]
push eax
mov edx, edi
call fcn.00465520
add esp, 4
test eax, eax
je 0x4c32b1
mov eax, dword [esp + 0x10]
lea ecx, [edi*8]
imul ecx, esi
push eax
push eax
call fcn.0049e4c0
add esp, 8
test eax, eax
je 0x4c32b1
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push ecx
push eax
push eax
call fcn.00493220
add esp, 0xc
test eax, eax
je 0x4c32b1
inc esi
cmp esi, dword [esp + 0x48]
jle 0x4c2bd1
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0x14]
dec ecx
call fcn.00465820
test eax, eax
je 0x4c32b1
mov edx, esi
mov esi, dword [esp + 0x30]
push edx
push esi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4c32b1
mov eax, dword [esp + 0x1c]
push eax
push esi
push esi
call fcn.00493220
add esp, 0xc
test eax, eax
je 0x4c32b1
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
push ecx
call fcn.0049e330
add esp, 4
test eax, eax
je 0x4c32b1
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x4c]
push edx
push esi
push eax
push ecx
push 0
call fcn.00492a30
add esp, 0x14
test eax, eax
je 0x4c32b1
mov edx, dword [esp + 0x4c]
push 0x5743a4
push edx
push esi
call fcn.00493520
add esp, 0xc
test eax, eax
je 0x4c32b1
mov ecx, dword [esp + 0x30]
mov eax, esi
mov esi, dword [esp + 0x24]
push eax
push ecx
push esi
call fcn.00493520
add esp, 0xc
test eax, eax
je 0x4c32b1
mov ecx, dword [esp + 0x1c]
mov edx, esi
call fcn.004656d0
test eax, eax
jl 0x4c2d52
mov edx, dword [esp + 0xc]
push ebx
push 1
push edx
push 0x32
mov ecx, esi
call fcn.00492140
add esp, 0x10
test eax, eax
jg 0x4c2d6b
jne 0x4c32b1
mov eax, dword [esp + 0x40]
inc eax
cmp eax, 0x1000
mov dword [esp + 0x40], eax
jl 0x4c2ac3
jmp 0x4c28ba
test ebx, ebx
je 0x4c2d98
mov eax, dword [ebx]
sub eax, 1
je 0x4c2e95
sub eax, 1
jne 0x4c32b1
mov eax, dword [ebx + 8]
push ebx
push 1
push 2
call eax
add esp, 0xc
test eax, eax
je 0x4c32b1
push 0x5743a4
push esi
mov esi, dword [esp + 0x24]
push esi
call fcn.00493520
add esp, 0xc
test eax, eax
je 0x4c32b1
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push edx
push eax
push esi
push 0
push ecx
call fcn.00492a30
add esp, 0x14
test eax, eax
je 0x4c32b1
push 2
mov edi, esi
call fcn.004654c0
add esp, 4
test eax, eax
je 0x4c32b1
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
call fcn.0049d240
add esp, 0xc
test eax, eax
je 0x4c32b1
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov eax, esi
push eax
push ecx
call fcn.0046f170
add esp, 0x18
test eax, eax
je 0x4c32b1
mov esi, dword [esp + 0x2c]
cmp dword [esi + 4], 1
jne 0x4c2eb2
mov edx, dword [esi]
cmp dword [edx], 1
jne 0x4c2eb2
cmp dword [esi + 0xc], 0
jne 0x4c2eb2
push 0x5743a4
push edi
push edi
call fcn.00493220
add esp, 0xc
test eax, eax
je 0x4c32b1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
inc dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
push edi
push esi
call fcn.0046f170
add esp, 0x18
test eax, eax
jne 0x4c2e38
jmp 0x4c32b1
mov eax, dword [ebx + 8]
test eax, eax
je 0x4c2d98
mov ecx, dword [ebx + 4]
push ecx
push 1
push 2
call eax
add esp, 0xc
jmp 0x4c2d98
mov edx, 1
push ebx
lea esi, [edx + 2]
call fcn.00491e20
add esp, 4
test eax, eax
je 0x4c32b1
mov ecx, dword [esp + 0x3c]
mov esi, dword [ecx + 0xc]
mov dword [esp + 0x44], 1
lea ebx, [ebx]
test esi, esi
je 0x4c2f56
mov edi, dword [esi]
test edi, edi
je 0x4c2f1d
test byte [esi + 0x10], 2
jne 0x4c2f1d
mov eax, dword [0x5be044]
test eax, eax
je 0x4c2f01
push 0
push edi
call eax
add esp, 8
push edi
call dword [0x5b65dc]
mov eax, dword [0x5be044]
add esp, 4
test eax, eax
je 0x4c2f22
push 1
push 0
call eax
add esp, 8
mov eax, dword [0x5be044]
mov ecx, dword [esi + 0x10]
test cl, 1
je 0x4c2fda
test eax, eax
je 0x4c2f3a
push 0
push esi
call eax
add esp, 8
push esi
call dword [0x5b65dc]
mov eax, dword [0x5be044]
add esp, 4
test eax, eax
je 0x4c2f5b
push 1
push 0
call eax
add esp, 8
mov eax, dword [0x5be044]
mov edx, dword [esp + 0x3c]
mov esi, dword [edx + 0x10]
test esi, esi
je 0x4c2ffd
mov edi, dword [esi]
test edi, edi
je 0x4c2fa3
test byte [esi + 0x10], 2
jne 0x4c2fa3
test eax, eax
je 0x4c2f82
push 0
push edi
call eax
add esp, 8
push edi
call dword [0x5b65dc]
mov eax, dword [0x5be044]
add esp, 4
test eax, eax
je 0x4c2fa3
push 1
push 0
call eax
mov eax, dword [0x5be044]
add esp, 8
mov ecx, dword [esi + 0x10]
test cl, 1
je 0x4c2fee
test eax, eax
je 0x4c2fb7
push 0
push esi
call eax
add esp, 8
push esi
call dword [0x5b65dc]
mov eax, dword [0x5be044]
add esp, 4
test eax, eax
je 0x4c2ffd
push 1
push 0
call eax
mov eax, dword [0x5be044]
add esp, 8
jmp 0x4c2ffd
or ecx, 0x8000
mov dword [esi + 0x10], ecx
mov dword [esi], 0
jmp 0x4c2f5b
or ecx, 0x8000
mov dword [esi + 0x10], ecx
mov dword [esi], 0
mov ebx, dword [esp + 0x3c]
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x4c3086
mov edi, dword [esi]
test edi, edi
je 0x4c3045
test byte [esi + 0x10], 2
jne 0x4c3045
test eax, eax
je 0x4c3024
push 0
push edi
call eax
add esp, 8
push edi
call dword [0x5b65dc]
mov eax, dword [0x5be044]
add esp, 4
test eax, eax
je 0x4c3045
push 1
push 0
call eax
mov eax, dword [0x5be044]
add esp, 8
mov ecx, dword [esi + 0x10]
test cl, 1
je 0x4c3077
test eax, eax
je 0x4c3059
push 0
push esi
call eax
add esp, 8
push esi
call dword [0x5b65dc]
mov eax, dword [0x5be044]
add esp, 4
test eax, eax
je 0x4c3086
push 1
push 0
call eax
add esp, 8
jmp 0x4c3086
or ecx, 0x8000
mov dword [esi + 0x10], ecx
mov dword [esi], 0
mov edi, dword [esp + 0x24]
test edi, edi
je 0x4c3132
call fcn.00465200
mov esi, eax
test esi, esi
je 0x4c3132
push edi
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4c3134
mov edi, dword [esi]
test edi, edi
je 0x4c30ed
test byte [esi + 0x10], 2
jne 0x4c30ed
mov eax, dword [0x5be044]
test eax, eax
je 0x4c30d0
push 0
push edi
call eax
add esp, 8
push edi
call dword [0x5b65dc]
mov ecx, dword [0x5be044]
add esp, 4
test ecx, ecx
je 0x4c30f3
push 1
push 0
call ecx
add esp, 8
mov ecx, dword [0x5be044]
mov eax, dword [esi + 0x10]
test al, 1
je 0x4c3124
test ecx, ecx
je 0x4c3106
push 0
push esi
call ecx
add esp, 8
push esi
call dword [0x5b65dc]
mov eax, dword [0x5be044]
add esp, 4
test eax, eax
je 0x4c3132
push 1
push 0
call eax
add esp, 8
jmp 0x4c3132
or eax, 0x8000
mov dword [esi + 0x10], eax
mov dword [esi], 0
xor esi, esi
mov edi, dword [esp + 0x20]
mov dword [ebx + 0xc], esi
test edi, edi
je 0x4c31e3
call fcn.00465200
mov esi, eax
test esi, esi
je 0x4c31e3
push edi
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4c31e5
mov edi, dword [esi]
test edi, edi
je 0x4c319e
test byte [esi + 0x10], 2
jne 0x4c319e
mov eax, dword [0x5be044]
test eax, eax
je 0x4c3181
push 0
push edi
call eax
add esp, 8
push edi
call dword [0x5b65dc]
mov ecx, dword [0x5be044]
add esp, 4
test ecx, ecx
je 0x4c31a4
push 1
push 0
call ecx
add esp, 8
mov ecx, dword [0x5be044]
mov eax, dword [esi + 0x10]
test al, 1
je 0x4c31d5
test ecx, ecx
je 0x4c31b7
push 0
push esi
call ecx
add esp, 8
push esi
call dword [0x5b65dc]
mov eax, dword [0x5be044]
add esp, 4
test eax, eax
je 0x4c31e3
push 1
push 0
call eax
add esp, 8
jmp 0x4c31e3
or eax, 0x8000
mov dword [esi + 0x10], eax
mov dword [esi], 0
xor esi, esi
mov edi, dword [esp + 0x2c]
mov dword [ebx + 0x10], esi
test edi, edi
je 0x4c3294
call fcn.00465200
mov esi, eax
test esi, esi
je 0x4c3294
push edi
push esi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4c3296
mov edi, dword [esi]
test edi, edi
je 0x4c324f
test byte [esi + 0x10], 2
jne 0x4c324f
mov eax, dword [0x5be044]
test eax, eax
je 0x4c3232
push 0
push edi
call eax
add esp, 8
push edi
call dword [0x5b65dc]
mov ecx, dword [0x5be044]
add esp, 4
test ecx, ecx
je 0x4c3255
push 1
push 0
call ecx
add esp, 8
mov ecx, dword [0x5be044]
mov eax, dword [esi + 0x10]
test al, 1
je 0x4c3286
test ecx, ecx
je 0x4c3268
push 0
push esi
call ecx
add esp, 8
push esi
call dword [0x5b65dc]
mov eax, dword [0x5be044]
add esp, 4
test eax, eax
je 0x4c3294
push 1
push 0
call eax
add esp, 8
jmp 0x4c3294
or eax, 0x8000
mov dword [esi + 0x10], eax
mov dword [esi], 0
xor esi, esi
cmp dword [ebx + 0xc], 0
mov dword [ebx + 0x14], esi
je 0x4c32a9
cmp dword [ebx + 0x10], 0
je 0x4c32a9
test esi, esi
jne 0x4c32b1
mov dword [esp + 0x44], 0
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4c32c2
dec eax
mov dword [edi + 0x24], eax
jmp 0x4c3317
dec dword [edi + 0x18]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
mov esi, dword [ecx + eax*4]
mov eax, dword [edi + 0x20]
cmp esi, eax
jae 0x4c330d
mov ecx, dword [edi + 0xc]
sub eax, esi
mov edx, eax
lea eax, [ecx - 1]
sub ecx, edx
and eax, 0xf
mov dword [edi + 0xc], ecx
test edx, edx
je 0x4c330d
jmp 0x4c32f0
dec edx
test eax, eax
jne 0x4c3308
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 0x140]
mov eax, 0xf
mov dword [edi + 4], ecx
jmp 0x4c3309
dec eax
test edx, edx
jne 0x4c32f0
mov dword [edi + 0x20], esi
mov dword [edi + 0x28], 0
mov esi, edi
call fcn.0046e8e0
cmp dword [esp + 0x18], 0
je 0x4c3505
mov esi, dword [esp + 0x18]
add esi, 4
je 0x4c33a4
mov edi, dword [esi]
test edi, edi
je 0x4c336b
test byte [esi + 0x10], 2
jne 0x4c336b
mov eax, dword [0x5be044]
test eax, eax
je 0x4c334f
push 0
push edi
call eax
add esp, 8
push edi
call dword [0x5b65dc]
mov eax, dword [0x5be044]
add esp, 4
test eax, eax
je 0x4c3370
push 1
push 0
call eax
add esp, 8
mov eax, dword [0x5be044]
mov ecx, dword [esi + 0x10]
test cl, 1
je 0x4c3426
test eax, eax
je 0x4c3388
push 0
push esi
call eax
add esp, 8
push esi
call dword [0x5b65dc]
mov eax, dword [0x5be044]
add esp, 4
test eax, eax
je 0x4c33a9
push 1
push 0
call eax
add esp, 8
mov eax, dword [0x5be044]
mov esi, dword [esp + 0x18]
add esi, 0x18
je 0x4c3449
mov edi, dword [esi]
test edi, edi
je 0x4c33ef
test byte [esi + 0x10], 2
jne 0x4c33ef
test eax, eax
je 0x4c33ce
push 0
push edi
call eax
add esp, 8
push edi
call dword [0x5b65dc]
mov eax, dword [0x5be044]
add esp, 4
test eax, eax
je 0x4c33ef
push 1
push 0
call eax
mov eax, dword [0x5be044]
add esp, 8
mov ecx, dword [esi + 0x10]
test cl, 1
je 0x4c343a
test eax, eax
je 0x4c3403
push 0
push esi
call eax
add esp, 8
push esi
call dword [0x5b65dc]
mov eax, dword [0x5be044]
add esp, 4
test eax, eax
je 0x4c3449
push 1
push 0
call eax
mov eax, dword [0x5be044]
add esp, 8
jmp 0x4c3449
or ecx, 0x8000
mov dword [esi + 0x10], ecx
mov dword [esi], 0
jmp 0x4c33a9
or ecx, 0x8000
mov dword [esi + 0x10], ecx
mov dword [esi], 0
mov ebx, dword [esp + 0x18]
lea esi, [ebx + 0x2c]
test esi, esi
je 0x4c34d7
mov edi, dword [esi]
test edi, edi
je 0x4c3491
test byte [esi + 0x10], 2
jne 0x4c3491
test eax, eax
je 0x4c3470
push 0
push edi
call eax
add esp, 8
push edi
call dword [0x5b65dc]
mov eax, dword [0x5be044]
add esp, 4
test eax, eax
je 0x4c3491
push 1
push 0
call eax
mov eax, dword [0x5be044]
add esp, 8
mov ecx, dword [esi + 0x10]
test cl, 1
je 0x4c34c8
test eax, eax
je 0x4c34a5
push 0
push esi
call eax
add esp, 8
push esi
call dword [0x5b65dc]
mov eax, dword [0x5be044]
add esp, 4
test eax, eax
je 0x4c34d7
push 1
push 0
call eax
mov eax, dword [0x5be044]
add esp, 8
jmp 0x4c34d7
or ecx, 0x8000
mov dword [esi + 0x10], ecx
mov dword [esi], 0
test byte [ebx + 0x48], 1
je 0x4c3505
test eax, eax
je 0x4c34e9
push 0
push ebx
call eax
add esp, 8
push ebx
call dword [0x5b65dc]
mov eax, dword [0x5be044]
add esp, 4
test eax, eax
je 0x4c3505
push 1
push 0
call eax
add esp, 8
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00511c1b
mov esp, ebp
pop ebp
ret