Function at 0x4d61c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x6480b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x20], edi
mov eax, dword [esi + 0x298]
test al, 6
je 0x4d6245
mov ecx, dword [0x651714]
test ecx, ecx
je 0x4d6245
test eax, 0x10000
jne 0x4d6245
push ecx
push dword [0x64d3dc]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], edi
push 0x1ae
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x40], 5
call fcn.0050e8f0
push eax
push 2
call fcn.004da370
add esp, 0x10
lea ecx, [ebp - 0x4c]
call fcn.0050e8a0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4d6245
push eax
call fcn.005d1ed0
add esp, 4
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edi
mov edx, dword [esi + 0x298]
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov eax, edx
test dl, 6
je 0x4d6281
test edx, 0x10000
jne 0x4d6281
cmp dword [0x64f350], 2
jne 0x4d6281
push ecx
mov ecx, dword [esi + 0x784]
lea eax, [ebp - 0x38]
push eax
call fcn.0050b500
mov eax, dword [esi + 0x298]
mov ecx, dword [ebp - 0x38]
and eax, 0x20e80
cmp eax, 0x20000
jne 0x4d6413
mov ebx, dword [esi + 0x7dc]
xor edi, edi
mov dword [ebp - 0x20], edi
test ebx, ebx
je 0x4d62bc
mov eax, dword [ebx + 0x7dc]
test eax, eax
je 0x4d62bc
nop word [eax + eax]
mov ebx, eax
mov eax, dword [ebx + 0x7dc]
test eax, eax
jne 0x4d62b0
cmp ebx, esi
je 0x4d63ef
test edi, edi
jne 0x4d63e9
test byte [esi + 0x298], 6
je 0x4d6364
lea eax, [esi + 0x798]
mov ecx, ebx
push eax
push dword [esi + 0x784]
call fcn.004d2ef0
mov edi, eax
test edi, edi
jne 0x4d63a0
mov ecx, ebx
call fcn.004c45b0
mov edi, eax
test edi, edi
jne 0x4d63a0
test dword [esi + 0x298], fcn.00401000
jne 0x4d6357
cmp dword [esi + 0x7b0], 1
je 0x4d6344
mov ecx, dword [esi + 0x784]
test ecx, ecx
je 0x4d6330
call fcn.0050a570
test eax, eax
je 0x4d6357
cmp dword [esi + 0x7b0], 1
je 0x4d6344
push 0
mov ecx, ebx
call fcn.004cf0e0
jmp 0x4d635e
push 0
push 0
push dword [esi + 0x174]
mov ecx, ebx
call fcn.004d3370
jmp 0x4d635e
mov ecx, ebx
call fcn.004cf090
mov edi, eax
test edi, edi
jne 0x4d63a0
mov eax, dword [esi + 0x298]
and eax, 0xfffd7fff
or eax, 0x10000
cmp dword [ebx + 0x170], 0
mov dword [ebx + 0x298], eax
je 0x4d6392
mov ecx, ebx
call fcn.004d61c0
mov edi, eax
mov eax, dword [ebx + 0x298]
and eax, 0x3000
or eax, 0x10
mov dword [ebx + 0x298], eax
mov dword [ebx + 0x784], 0
mov eax, dword [ebx + 0x798]
test eax, eax
je 0x4d63db
push eax
call fcn.005d1ed0
add esp, 4
mov dword [ebx + 0x798], 0
mov dword [ebx + 0x7a0], 0
mov dword [ebx + 0x79c], 0
mov ebx, dword [ebx + 0x7e0]
cmp ebx, esi
jne 0x4d62c4
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x20], edi
test edi, edi
je 0x4d6413
test ecx, ecx
je 0x4d6400
push ecx
call fcn.0058bb5f
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bb64
mov esp, ebp
pop ebp
ret
push 0x3e
call fcn.004ad7d0
add esp, 4
lea edi, [esi + 8]
test dword [esi + 0x298], 0xe80
je 0x4d644c
push 2
push esi
call fcn.004b5930
add esp, 8
mov ecx, edi
push 0
push dword [esi + 0x40]
call fcn.00494050
push esi
call fcn.004e0fb0
add esp, 4
push 1
mov ecx, esi
call fcn.004cca60
mov ecx, dword [esi + 0x298]
test ecx, 0x880
jne 0x4d6557
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x4d649e
push eax
call fcn.005d1ed0
mov dword [esi + 0xa8], 0
add esp, 4
mov dword [esi + 0xb0], 0
mov dword [esi + 0xac], 0
mov ecx, dword [esi + 0x298]
test ecx, 0xe80
jne 0x4d64ec
mov eax, dword [esi + 0xb8]
test eax, eax
je 0x4d64dd
push eax
call fcn.005d1ed0
mov dword [esi + 0xb8], 0
add esp, 4
mov dword [esi + 0xc0], 0
mov dword [esi + 0xbc], 0
mov ecx, dword [esi + 0x298]
mov dword [esi + 0x70], 0
test ecx, 0xe80
je 0x4d6508
mov eax, ecx
and eax, 0x7000
cmp eax, 0x3000
je 0x4d6557
and ecx, 0x3000
cmp ecx, 0x2000
je 0x4d6557
push 0x10000
push dword [esi + 0x920]
mov ecx, edi
call fcn.00494200
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
jne 0x4d655a
mov eax, dword [esi + 0x298]
test eax, 0xe80
jne 0x4d655a
test eax, 0x8000
je 0x4d655a
mov ecx, dword [esi + 0x7dc]
push 0x10000
push dword [esi + 0x920]
add ecx, 8
call fcn.00494200
mov ebx, eax
mov dword [ebp - 0x20], ebx
jmp 0x4d655a
mov ebx, dword [ebp - 0x20]
mov eax, dword [esi + 0x298]
test eax, 0x40000
je 0x4d6593
mov ecx, esi
call fcn.004d2d10
push 1
mov ecx, esi
call fcn.004c7250
mov ebx, eax
test ebx, ebx
jne 0x4d7219
mov ecx, esi
call fcn.004c84a0
mov ebx, eax
mov eax, dword [esi + 0x298]
mov dword [ebp - 0x20], ebx
test ebx, ebx
jne 0x4d7219
test al, 6
je 0x4d678c
cmp dword [0x64f414], ebx
je 0x4d6739
push 0x1c6
call fcn.004ad7d0
movzx eax, word [0x644b20]
add esp, 4
mov ecx, esi
mov dword [ebp - 0x34], ebx
push eax
push 0x644b18
lea eax, [ebp - 0x34]
push eax
call fcn.004c7440
test eax, eax
jne 0x4d6739
push 0x23444d23
push dword [ebp - 0x34]
mov ecx, esi
call fcn.004d8350
test eax, eax
je 0x4d6603
push ebx
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.004ccb70
jmp 0x4d6739
mov edi, dword [esi + 0x174]
test edi, edi
je 0x4d66a5
test ebx, ebx
jne 0x4d66a2
mov eax, dword [edi + 0x178]
or eax, dword [edi + 0x17c]
je 0x4d6694
xor ecx, ecx
cmp dword [esi + 0x7c0], ecx
je 0x4d6694
mov eax, dword [esi + 0x7b8]
nop word [eax + eax]
mov edx, dword [edi + 0x1cc]
cmp dword [eax], edx
mov edx, dword [esi + 0x7c0]
jne 0x4d6661
mov edx, dword [edi + 0x1d0]
cmp dword [eax + 4], edx
mov edx, dword [esi + 0x7c0]
je 0x4d666b
inc ecx
add eax, 0x40
cmp ecx, edx
jb 0x4d6640
jmp 0x4d6694
cmp dword [eax + 0x18], 7
jne 0x4d6694
push eax
push 0
push dword [ebp - 0x34]
mov ecx, esi
mov dword [0x651718], 1
push edi
call fcn.004c37d0
cmp eax, 1
mov eax, 1
cmove ebx, eax
mov edi, dword [edi + 0x278]
test edi, edi
jne 0x4d6611
mov dword [ebp - 0x20], ebx
mov edi, dword [ebp - 0x34]
test edi, edi
je 0x4d66c3
mov ecx, edi
call fcn.00494790
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
mov dword [ebp - 0x34], 0
cmp dword [0x651718], 0
je 0x4d672e
mov edx, dword [esi + 0x174]
test edx, edx
je 0x4d672e
nop word [eax + eax]
mov eax, dword [0x650ce8]
mov ecx, dword [0x650cec]
sub eax, dword [edx + 0xd4]
sbb ecx, dword [edx + 0xd8]
mov dword [0x650ce8], eax
mov dword [0x650cec], ecx
mov eax, dword [0x650ce8]
mov ecx, dword [0x650cec]
add eax, dword [edx + 0xb0]
adc ecx, dword [edx + 0xb4]
mov dword [0x650ce8], eax
mov dword [0x650cec], ecx
mov edx, dword [edx + 0x278]
test edx, edx
jne 0x4d66e0
test ebx, ebx
jne 0x4d7219
lea edi, [esi + 8]
mov ecx, esi
call fcn.004cc480
cmp dword [0x64f3a8], 0
je 0x4d6757
mov ecx, esi
call fcn.004d0e40
mov ebx, eax
mov dword [ebp - 0x20], ebx
jmp 0x4d676c
cmp dword [0x64f3c4], 0
je 0x4d678c
mov ecx, esi
call fcn.004d0ac0
mov ebx, eax
mov dword [ebp - 0x20], eax
test ebx, ebx
je 0x4d678c
push 0
push 0x10
push 0x1ad
call fcn.004b84a0
add esp, 0xc
or ebx, 0x8000
jmp 0x4d7219
mov eax, dword [esi + 0x298]
test al, 6
je 0x4d679d
mov eax, 0x41
jmp 0x4d67ae
and eax, 0x40000
neg eax
sbb eax, eax
and eax, 0x159
add eax, 0x42
push eax
call fcn.004ad7d0
add esp, 4
test dword [esi + 0x298], 0x600
je 0x4d67fc
push 0x209
call fcn.004ad7d0
add esp, 4
mov ecx, edi
call fcn.004955e0
push 0x42
call fcn.004ad7d0
add esp, 4
mov ecx, esi
call fcn.004ed8a0
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x4d6804
push dword [esi + 0x34]
mov ecx, esi
push ebx
call fcn.004cda40
test ebx, ebx
jne 0x4d7219
mov eax, dword [esi + 0x298]
test eax, 0x30000
jne 0x4d6953
test eax, 0x800
jne 0x4d682c
and eax, 0x8400
cmp eax, 0x400
jne 0x4d6953
cmp dword [0x64f678], 0
jne 0x4d6953
cmp dword [0x651718], 0
jne 0x4d6953
mov eax, dword [0x64f608]
test eax, eax
je 0x4d6953
jg 0x4d6867
call fcn.004dfd80
test eax, eax
je 0x4d6953
mov eax, dword [0x64f608]
cdq
mov edi, eax
mov eax, 0x20
xor edi, edx
sub edi, edx
cmp edi, eax
push 0x58
cmova edi, eax
lea eax, [esi + 0x980]
push 0
push eax
shl edi, 0x11
call fcn.005c9220
add esp, 0xc
cmp dword [0x649170], 2
jb 0x4d6953
push 0
push edi
call fcn.00486320
add esp, 8
mov dword [esi + 0x9c0], eax
push 4
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x988], eax
test eax, eax
je 0x4d69e5
push 0
push 0
mov eax, edi
mov dword [esi + 0x9c8], edi
push 1
shr eax, 1
push 0
mov dword [esi + 0x9cc], eax
call dword [0x648dd8]
mov dword [esi + 0x980], eax
test eax, eax
je 0x4d69c8
push 0
push 0
push 1
push 0
call dword [0x648dd8]
mov dword [esi + 0x984], eax
test eax, eax
je 0x4d69b2
push esi
push 0
push 0x4d0550
call fcn.005d21c2
add esp, 0xc
cmp eax, 0xffffffff
je 0x4d699c
push dword [esi + 0x9c8]
push dword [esi + 0x988]
call dword [sym.imp.KERNEL32.dll_VirtualLock]
test eax, eax
je 0x4d6949
mov eax, dword [esi + 0x9c8]
mov dword [esi + 0x9c4], eax
mov dword [esi + 0x9d0], 1
test ebx, ebx
jne 0x4d7219
mov ecx, esi
call fcn.004d4e10
mov ecx, esi
mov byte [ebp - 0x2d], al
call fcn.004d7420
mov ecx, esi
mov byte [ebp - 0x2e], al
call fcn.004d7600
test dword [esi + 0x298], 0xc80
mov byte [ebp - 0x2f], al
mov byte [ebp - 0x19], bl
je 0x4d6af3
cmp dword [esi + 0x9d0], ebx
je 0x4d6a0d
mov byte [ebp - 0x19], bl
jmp 0x4d6af3
push dword [esi + 0x984]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x984], 0
push dword [esi + 0x980]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x980], 0
push 0x8000
push 0
push dword [esi + 0x988]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 0x988], 0
cmp dword [esi + 0x9c0], 0
je 0x4d6a03
push 0
push edi
call fcn.00484d50
add esp, 8
mov dword [esi + 0x9c0], 0
mov ebx, 2
jmp 0x4d7219
cmp dword [0x64f2d8], 0
jne 0x4d6af3
mov ecx, dword [0x64f600]
test ecx, ecx
je 0x4d6af3
cmp dword [0x64f678], 0
jne 0x4d6af3
cmp dword [0x649170], 0
je 0x4d6af3
mov eax, dword [0x64f604]
mov edi, 0x40
shl eax, 0x10
cmp ecx, edi
push 0x50
cmovb edi, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x3c], edi
call fcn.00479f06
add esp, 4
test eax, eax
je 0x4d6a78
push dword [ebp - 0x28]
mov ecx, eax
push edi
push esi
call fcn.0048ca20
mov ecx, eax
jmp 0x4d6a7a
xor ecx, ecx
mov dword [0x64f2d8], ecx
test ecx, ecx
je 0x4d6af3
cmp dword [ecx + 0x20], 0
je 0x4d6ae3
cmp byte [ecx + 0xc], 0
je 0x4d6ae3
xor edi, edi
cmp dword [ebp - 0x3c], edi
jbe 0x4d6ac6
xor eax, eax
mov dword [ebp - 0x24], eax
nop dword [eax]
mov ecx, dword [ecx + 0x20]
push dword [ebp - 0x28]
add ecx, eax
call fcn.0048d2f0
mov ecx, dword [0x64f2d8]
test eax, eax
jne 0x4d6adf
mov eax, dword [ebp - 0x24]
inc edi
add eax, 0x50
mov dword [ebp - 0x24], eax
cmp edi, dword [ebp - 0x3c]
jb 0x4d6aa0
test ecx, ecx
je 0x4d6af3
call fcn.0048db50
test eax, eax
je 0x4d6ad9
mov byte [ebp - 0x19], 1
jmp 0x4d6af3
mov ecx, dword [0x64f2d8]
test ecx, ecx
je 0x4d6ae9
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x64f2d8], 0
mov ecx, dword [esi + 0x298]
mov eax, dword [0x64f3c8]
mov dword [ebp - 0x3c], eax
test ecx, 0x880
jne 0x4d6f9e
mov eax, ecx
and eax, 0x7000
cmp eax, 0x3000
je 0x4d6f9e
mov eax, ecx
and eax, 0x3000
cmp eax, 0x2000
je 0x4d6f9e
cmp dword [esi + 0x7b0], 1
je 0x4d6f9e
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
test cl, 6
je 0x4d6c50
mov ecx, dword [esi + 0x784]
call fcn.004f9e70
cmp dword [0x64f3a8], 0
mov edi, eax
mov eax, edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], eax
je 0x4d6b89
mov ecx, dword [0x64f6a0]
test eax, eax
ja 0x4d6b89
jb 0x4d6b7d
cmp edi, ecx
jae 0x4d6b89
mov edi, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0
cmp dword [0x64f3e4], 0
je 0x4d6c10
mov ecx, esi
call fcn.004caa10
test eax, eax
je 0x4d6c10
mov edx, dword [esi + 0x298]
mov eax, edx
and eax, 0x5000
cmp eax, 0x5000
setne cl
bt edx, 0x10
setae al
test al, cl
je 0x4d6c10
mov eax, dword [0x650ce8]
mov ecx, dword [0x650cec]
sub eax, edi
mov dword [0x650ce8], eax
sbb ecx, dword [ebp - 0x24]
mov dword [0x650cec], ecx
mov ecx, dword [esi + 0x784]
call fcn.004f9dd0
mov edi, dword [0x650ce8]
mov ebx, dword [0x650cec]
sub edi, eax
mov ecx, dword [esi + 0x784]
sbb ebx, edx
call fcn.004f9e60
add eax, edi
mov dword [0x650ce8], eax
adc edx, ebx
mov ebx, dword [ebp - 0x20]
mov dword [0x650cec], edx
mov edi, dword [ebp - 0x28]
mov eax, dword [esi + 0x174]
mov dword [esi + 0x170], eax
test eax, eax
je 0x4d6e99
cmp dword [esi + 0x9d0], 0
je 0x4d6c77
mov eax, dword [esi + 0x298]
test eax, 0x800
je 0x4d6c5e
mov ecx, dword [esi + 0x170]
mov ecx, dword [ecx + 0x1a8]
call fcn.004f9de0
jmp 0x4d6c71
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edi
jmp 0x4d6c13
test eax, 0x400
je 0x4d6c77
mov eax, dword [esi + 0x170]
mov eax, dword [eax + 0x1a4]
mov dword [esi + 0x994], eax
mov eax, dword [esi + 0x298]
test eax, 0x40000
jne 0x4d6c95
push 4
push esi
call fcn.004b5930
mov eax, dword [esi + 0x298]
add esp, 8
test al, 6
je 0x4d6e28
mov ecx, esi
call fcn.004f5830
mov ebx, eax
test ebx, ebx
jne 0x4d70bd
mov ecx, dword [esi + 0x170]
mov eax, dword [ecx + 0xb8]
or eax, dword [ecx + 0xbc]
je 0x4d6ccb
movzx eax, byte [ecx + 0xca]
jmp 0x4d6cd2
movzx eax, byte [ecx + 0xc8]
shr eax, 7
mov ecx, esi
push 0
mov dword [0x64f3c8], eax
call fcn.004d07b0
push 1
mov ecx, esi
call fcn.004f5150
mov ebx, eax
test ebx, ebx
jne 0x4d70bd
cmp dword [0x64f3e4], eax
je 0x4d6de2
mov ecx, esi
call fcn.004caa10
test eax, eax
je 0x4d6de2
test dword [esi + 0x298], 0x10000
jne 0x4d6de2
mov ecx, esi
call fcn.004cb4f0
mov ebx, dword [ebp - 0x24]
cmp ebx, edx
ja 0x4d6de2
jb 0x4d6d3d
cmp edi, eax
jae 0x4d6de2
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [0x650ce0], xmm0
call fcn.004cb4f0
sub eax, edi
mov dword [0x650cd8], eax
sbb edx, ebx
push 0x15c
mov dword [0x650cdc], edx
call fcn.004ad7d0
mov ecx, dword [esi + 0x170]
add esp, 4
mov ecx, dword [ecx + 0x1a8]
call fcn.004f9de0
push eax
mov eax, dword [0x650cdc]
mov ecx, esi
push eax
mov eax, dword [0x650cd8]
push eax
push ebx
push edi
call fcn.004d94c0
mov ebx, eax
test ebx, ebx
jne 0x4d70bd
cmp dword [0x64f3f8], eax
je 0x4d6dcf
push eax
mov eax, dword [0x650cdc]
push eax
mov eax, dword [0x650cd8]
mov ecx, dword [esi + 0x170]
push eax
push dword [ebp - 0x24]
mov ecx, dword [ecx + 0x1a8]
push edi
call fcn.004f9de0
push eax
call fcn.0048f5f0
add esp, 0x18
xorps xmm0, xmm0
movlpd qword [0x650cd8], xmm0
movlpd qword [0x650ce0], xmm0
mov eax, dword [esi + 0x170]
mov ecx, 0x64f318
push dword [eax + 0x1b0]
call fcn.004cc610
mov ecx, esi
call fcn.004cb4f0
mov ecx, dword [esi + 0x170]
sub eax, dword [ecx + 0x6c]
sbb edx, dword [ecx + 0x70]
mov ecx, esi
mov dword [esi + 0x8c8], eax
mov dword [esi + 0x8cc], edx
call fcn.004cc380
push 0x41
call fcn.004ad7d0
add esp, 4
mov ecx, esi
call fcn.004c8690
mov ebx, eax
test ebx, ebx
jne 0x4d70b5
mov eax, dword [esi + 0x298]
mov ecx, dword [esi + 0x170]
and eax, 0x5000
cmp eax, 0x5000
jne 0x4d6e5f
mov edi, dword [esi + 0x874]
mov eax, dword [esi + 0x878]
jmp 0x4d6e71
mov edi, dword [ecx + 0x1c4]
mov eax, dword [ecx + 0x1c8]
add edi, 1
adc eax, 0
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 0x278]
mov ecx, esi
push 1
mov dword [ebp - 0x28], edi
mov dword [esi + 0x170], eax
call fcn.004cca60
cmp dword [esi + 0x170], 0
jne 0x4d6c27
cmp dword [0x64f3e4], 0
je 0x4d70bd
test byte [esi + 0x298], 6
je 0x4d70bd
mov ecx, esi
call fcn.004caa10
test eax, eax
je 0x4d70bd
test dword [esi + 0x298], 0x10000
jne 0x4d70bd
mov ecx, dword [esi + 0x784]
call fcn.004f9e60
cmp dword [ebp - 0x24], edx
ja 0x4d70bd
jb 0x4d6ef0
cmp edi, eax
ja 0x4d70bd
xorps xmm0, xmm0
movlpd qword [0x650ce0], xmm0
mov ecx, dword [esi + 0x784]
call fcn.004f9e60
mov ebx, dword [ebp - 0x28]
mov edi, 1
sub edi, ebx
mov ecx, 0
push 0x15c
sbb ecx, dword [ebp - 0x24]
add eax, edi
mov dword [0x650cd8], eax
adc edx, ecx
mov dword [0x650cdc], edx
call fcn.004ad7d0
mov ecx, dword [esi + 0x784]
add esp, 4
call fcn.004f9de0
mov edi, dword [ebp - 0x24]
mov ecx, esi
push eax
mov eax, dword [0x650cdc]
push eax
mov eax, dword [0x650cd8]
push eax
push edi
push ebx
call fcn.004d94c0
mov ebx, eax
test ebx, ebx
jne 0x4d70bd
cmp dword [0x64f3f8], eax
je 0x4d6f8f
push eax
mov eax, dword [0x650cdc]
push eax
mov eax, dword [0x650cd8]
mov ecx, dword [esi + 0x784]
push eax
push edi
push dword [ebp - 0x28]
call fcn.004f9de0
push eax
call fcn.0048f5f0
add esp, 0x18
push 0x64
call fcn.004c12d0
add esp, 4
jmp 0x4d70bd
cmp dword [esi + 0x170], 0
jne 0x4d6fb4
push dword [esi + 0x174]
mov ecx, esi
call fcn.004d2dd0
cmp dword [esi + 0x9d0], 0
je 0x4d6ff6
mov eax, dword [esi + 0x298]
test eax, 0x800
je 0x4d6fdd
mov ecx, dword [esi + 0x170]
mov ecx, dword [ecx + 0x1a8]
call fcn.004f9de0
jmp 0x4d6ff0
test eax, 0x400
je 0x4d6ff6
mov eax, dword [esi + 0x170]
mov eax, dword [eax + 0x1a4]
mov dword [esi + 0x994], eax
test byte [esi + 0x298], 6
je 0x4d70a8
mov ecx, esi
call fcn.004f5830
test eax, eax
jne 0x4d70a8
push eax
mov eax, dword [esi + 0x170]
mov ecx, esi
push dword [eax + 0x1ac]
call fcn.004f5ab0
test eax, eax
jne 0x4d70a8
test dword [0x64f3c8], 0x8000
je 0x4d7062
mov ecx, dword [esi + 0x170]
mov eax, dword [ecx + 0xb8]
or eax, dword [ecx + 0xbc]
je 0x4d7053
movzx eax, byte [ecx + 0xca]
jmp 0x4d705a
movzx eax, byte [ecx + 0xc8]
shr eax, 7
mov dword [0x64f3c8], eax
mov eax, dword [esi + 0x170]
mov ecx, 0x64f318
push dword [eax + 0x1b0]
call fcn.004cc610
mov ecx, esi
call fcn.004cb4f0
mov ecx, dword [esi + 0x170]
sub eax, dword [ecx + 0x6c]
sbb edx, dword [ecx + 0x70]
mov ecx, esi
mov dword [esi + 0x8c8], eax
mov dword [esi + 0x8cc], edx
call fcn.004cc380
push 0x41
call fcn.004ad7d0
add esp, 4
mov ecx, esi
call fcn.004c8690
mov ebx, eax
test ebx, ebx
je 0x4d70bd
push ebx
mov ecx, esi
call fcn.004d8630
mov eax, dword [ebp - 0x3c]
and eax, 0xffff7fff
cmp byte [ebp - 0x2d], 0
mov dword [0x64f3c8], eax
je 0x4d70ea
mov ecx, dword [esi + 0x914]
test ecx, ecx
je 0x4d70e0
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x914], 0
cmp byte [ebp - 0x2e], 0
je 0x4d710a
mov ecx, dword [0x64f2d0]
test ecx, ecx
je 0x4d710a
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x64f2d0], 0
cmp byte [ebp - 0x2f], 0
je 0x4d712a
mov ecx, dword [0x64f2d4]
test ecx, ecx
je 0x4d712a
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x64f2d4], 0
cmp byte [ebp - 0x19], 0
je 0x4d714a
mov ecx, dword [0x64f2d8]
test ecx, ecx
je 0x4d7140
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x64f2d8], 0
cmp dword [esi + 0x9d0], 0
je 0x4d7219
cmp dword [esi + 0x988], 0
je 0x4d7219
mov ecx, esi
call fcn.004d7990
push dword [esi + 0x980]
mov dword [esi + 0x9b0], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [esi + 0x984]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x9b0], 0
je 0x4d71ad
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0xa
call edi
cmp dword [esi + 0x9b0], 0
jne 0x4d71a0
push dword [esi + 0x980]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 0x984]
call edi
mov eax, dword [esi + 0x9c4]
test eax, eax
je 0x4d71da
push eax
push dword [esi + 0x988]
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push 0x8000
push 0
push dword [esi + 0x988]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp dword [esi + 0x9c0], 0
je 0x4d7206
push 0
push dword [esi + 0x9c8]
call fcn.00484d50
add esp, 8
push 0x58
lea eax, [esi + 0x980]
push 0
push eax
call fcn.005c9220
add esp, 0xc
test dword [esi + 0x298], 0x40000
je 0x4d72cc
test ebx, ebx
jne 0x4d72ab
mov ecx, dword [esi + 0x7e4]
lea eax, [esi + 0x8e4]
push 4
push eax
call fcn.004983b0
mov ebx, eax
test ebx, ebx
jne 0x4d72ab
push 0x10
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xffffffff
push eax
push ebx
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
call dword [0x644e78]
mov ecx, dword [esi + 0x7e4]
add esp, 0xc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004983b0
mov ebx, eax
test ebx, ebx
jne 0x4d72ab
mov ecx, dword [esi + 0x7e4]
call fcn.004955b0
mov ebx, eax
test ebx, ebx
jne 0x4d72ab
mov ecx, esi
call fcn.004ed580
mov ebx, eax
test ebx, ebx
je 0x4d72b7
cmp ebx, 0x57
je 0x4d72b7
mov eax, 1
jmp 0x4d72b9
xor eax, eax
push eax
mov ecx, esi
call fcn.004ccb10
cmp ebx, 0x57
mov eax, 1
cmove ebx, eax
mov eax, dword [esi + 0x298]
mov byte [ebp - 0x19], 0
test al, 6
je 0x4d7330
test eax, 0x10000
je 0x4d72e5
test ebx, ebx
je 0x4d7330
cmp dword [0x64f350], 2
jne 0x4d7330
test ebx, ebx
jne 0x4d72fe
push ebx
mov ecx, esi
call fcn.004d07b0
mov byte [ebp - 0x19], 1
push dword [0x64f478]
mov ecx, dword [esi + 0x784]
push dword [ebp - 0x38]
call fcn.0050a740
test eax, eax
jne 0x4d7322
or dword [0x64f424], 0x8000
jmp 0x4d7330
push dword [esi + 0x784]
call fcn.0048a250
add esp, 4
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4d7340
push eax
call fcn.0058bb5f
add esp, 4
test ebx, ebx
jne 0x4d7379
mov ecx, dword [esi + 0x298]
mov eax, ecx
and eax, 0x5000
cmp eax, 0x5000
je 0x4d7379
test cl, 6
je 0x4d7379
test ecx, 0x10000
jne 0x4d7379
cmp byte [ebp - 0x19], bl
jne 0x4d7372
push ebx
mov ecx, esi
call fcn.004d07b0
mov ecx, esi
call fcn.004d7af0
lea ecx, [esi + 8]
call fcn.004a0bc0
test dword [esi + 0x298], 0x10900
jne 0x4d7397
mov ecx, 0x64d3b0
call fcn.00495200
mov ecx, dword [esi + 0x924]
test ecx, ecx
je 0x4d73c9
mov eax, dword [esi + 0x298]
test eax, 0x10000
jne 0x4d73c9
test al, 6
jne 0x4d73b6
test ebx, ebx
je 0x4d73cd
push ecx
call fcn.0058bb5f
add esp, 4
mov dword [esi + 0x924], 0
test ebx, ebx
jne 0x4d73fa
mov eax, dword [esi + 0x298]
test al, 6
je 0x4d73de
mov eax, 0xe9
jmp 0x4d73f1
and eax, 0x40000
neg eax
sbb eax, eax
and eax, 0xb0
add eax, 0xea
push eax
call fcn.004ad7d0
add esp, 4
call fcn.004e0920
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058bb64
mov esp, ebp
pop ebp
ret