Function at 0x491c4c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x17
push 0
push 0
dec ecx
jne 0x491c55
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4932d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4c6d40]
call fcn.0041248c
cmp eax, 8
jge 0x491c8a
mov eax, 0x20
jmp 0x491caf
mov eax, dword [0x4c6d40]
mov ebx, dword [eax + 4]
mov eax, dword [0x4c6d40]
call fcn.0041248c
push eax
mov eax, dword [ebx + 4]
pop edx
sub eax, edx
cmp eax, 0x1000
jle 0x491caf
mov eax, 0x1000
mov edx, 0x4c6d48
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x2f8]
mov ecx, dword [ecx + 0x80]
xchg ecx, eax
call fcn.00457a80
mov esi, eax
test esi, esi
jle 0x493269
mov eax, dword [0x4bc45c]
mov dword [0x4bc46c], eax
mov eax, dword [0x4bc460]
mov dword [0x4bc470], eax
mov ebx, 0x4c6d48
mov eax, dword [0x4c6d40]
call fcn.0041248c
test eax, eax
jg 0x491d06
cmp dword [ebx], 0x13572469
jne 0x491d17
mov edx, 0x4c6d48
mov ecx, esi
mov eax, dword [0x4c6d40]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [0x4c6d40]
mov ebx, dword [eax + 4]
mov eax, dword [0x4c6d40]
call fcn.0041248c
test eax, eax
jle 0x493269
mov eax, dword [0x4c6d40]
call fcn.0041248c
cmp eax, dword [ebx + 4]
jl 0x493256
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.00453f58
test al, al
jne 0x493248
cmp byte [ebx + 0xd], 0xd
jne 0x491d7f
mov ecx, dword [ebx + 0x10]
mov eax, 0x4c7f24
mov edx, 0xa
call fcn.00455218
xor edx, edx
mov eax, dword [0x4c6d40]
call fcn.0041249c
jmp 0x493269
mov dl, 1
mov eax, dword [0x45366c]
call fcn.00402e48
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x493241
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x4c6d40]
call fcn.0041248c
mov ecx, eax
mov eax, dword [0x4c6d40]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [0x4c6d40]
call fcn.004124a8
cmp eax, 0x10000
jle 0x491dd7
mov edx, 0x10000
mov eax, dword [0x4c6d40]
mov ecx, dword [eax]
call dword [ecx]
xor edx, edx
mov eax, dword [0x4c6d40]
call fcn.0041249c
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 4]
cmp byte [ebx + 0xe], 0
je 0x491dfa
mov edx, dword [ebx + 8]
mov eax, dword [ebp - 4]
call fcn.0048b13c
mov edx, dword [ebx + 8]
mov eax, dword [0x4c7f50]
call fcn.004102ac
test eax, eax
jge case.0x49209a.203
mov edx, dword [ebx + 8]
mov eax, dword [0x4c7f50]
call fcn.004100a4
mov eax, dword [0x4c7f50]
cmp dword [eax + 8], 0x64
jle 0x491e33
xor edx, edx
mov eax, dword [0x4c7f50]
call fcn.004100f0
mov al, byte [ebx + 0xd]
cmp al, 0xa
jne 0x491e56
cmp byte [0x4c6d44], 3
jne case.0x49209a.203
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0048b8a4
jmp case.0x49209a.203
cmp al, 0xb
jne 0x49206c
mov al, byte [ebx + 0xc]
sub al, 0x97
jne case.0x49209a.203
mov byte [ebp - 0x1e], 0
mov eax, dword [ebx + 0x10]
cmp eax, dword [0x4bc478]
je 0x491ec8
cmp word [0x4bc478], 0
jne 0x491e8d
mov dword [0x4bc478], eax
mov byte [ebp - 0x1e], 1
jmp 0x491ec8
lea edi, [ebx + 0x20]
cmp dword [ebx + 4], 0x2c
jl 0x491ec8
cmp dword [edi], 0x632
jne 0x491ec8
add edi, 4
mov esi, dword [edi]
add edi, 4
test esi, esi
jle 0x491ec8
mov eax, dword [edi]
add edi, 4
cmp eax, dword [0x4bc478]
jne 0x491ec3
mov eax, dword [ebx + 0x10]
mov dword [0x4bc478], eax
mov byte [ebp - 0x1e], 1
dec esi
test esi, esi
jg 0x491eaa
mov eax, dword [ebx + 0x10]
cmp eax, dword [0x4bc478]
je 0x491eef
push 0
push 0
push 0x930
mov eax, dword [ebp - 4]
call fcn.00444784
push eax
call sub.user32.dll_PostMessageA
jmp case.0x49209a.203
mov byte [0x4c6d44], 3
mov edx, dword [0x4c7fc8]
and edx, 1
xor dl, 1
mov eax, dword [0x4bc900]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f0]
call fcn.00436f78
cmp dword [0x4bc4e4], 0
jne 0x491f30
xor ecx, ecx
mov dl, 1
mov eax, dword [0x489694]
call fcn.0041569c
mov dword [0x4bc4e4], eax
mov eax, dword [ebx + 0x1c]
mov dword [0x4bc474], eax
cmp dword [0x4bc474], 0x4030144
jae 0x491f7e
mov eax, dword [0x4bc998]
mov byte [eax], 1
mov eax, dword [0x4bcc00]
mov dl, byte [0x4932e0]
cmp dl, byte [eax]
je 0x491f6a
xor ecx, ecx
mov dl, byte [0x4932e4]
xor eax, eax
call fcn.00487830
mov eax, dword [0x4bc81c]
mov byte [eax], 1
mov eax, dword [0x4bc900]
mov eax, dword [eax]
call fcn.0042e10c
mov eax, dword [ebx + 0x14]
mov dword [0x4bc47c], eax
mov eax, dword [ebx + 0x18]
mov edx, eax
and edx, 0xff000000
cmp edx, 0x53000000
jne 0x492057
test ah, 8
je 0x491fbd
mov edx, 0x4932f0
mov eax, 0x493300
call fcn.00454978
mov eax, 0x4c7eb8
call fcn.00403ba0
jmp 0x492001
mov eax, dword [0x4bc868]
cmp byte [eax], 0
je 0x492001
mov eax, dword [0x4bc998]
mov byte [eax], 1
mov eax, dword [0x4bcc00]
mov dl, byte [0x4932e0]
cmp dl, byte [eax]
je 0x491fed
mov dl, byte [0x4932e4]
xor ecx, ecx
xor eax, eax
call fcn.00487830
mov eax, dword [0x4bc81c]
mov byte [eax], 1
mov eax, dword [0x4bc900]
mov eax, dword [eax]
call fcn.0042e10c
mov eax, dword [ebx + 0x18]
and eax, 0x4000
test eax, eax
setne dl
cmp dl, byte [0x4bc488]
je 0x492041
test eax, eax
setne byte [0x4bc488]
cmp byte [0x4bc488], 0
je 0x49203d
cmp byte [0x4bc48c], 0
jne 0x49203d
call fcn.00489b08
mov byte [0x4bc48c], 1
mov byte [ebp - 0x1e], 1
test byte [ebx + 0x1a], 8
je 0x492057
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2d0]
xor edx, edx
call fcn.00456004
cmp byte [ebp - 0x1e], 0
je 0x492062
call fcn.00489d60
call fcn.0048a130
jmp case.0x49209a.203
cmp al, 0xc
jne case.0x49209a.203
cmp byte [0x4c6d44], 3
jne case.0x49209a.203
xor eax, eax
mov al, byte [ebx + 0xc]
add eax, 0xffffff35
cmp eax, 0x24
ja case.0x49209a.203
mov al, byte [eax + 0x4920a1]
jmp dword [eax*4 + 0x4920c6]
cmp byte [0x4c7ef8], 0
jne case.0x49209a.203
mov byte [0x4c7e90], 0
call fcn.0048b5f8
mov eax, 0x4c7f88
call fcn.00403ba0
mov edx, 0x20
mov eax, dword [ebp - 8]
call fcn.0041249c
mov edx, 0x4c7f54
mov ecx, 8
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 4]
cmp byte [0x4c7f5b], 0
je 0x49216f
mov byte [0x4c7f54], 2
mov byte [0x4c7f55], 1
mov byte [0x4c7f56], 2
mov byte [0x4c7f57], 2
mov byte [0x4c7f58], 2
mov byte [0x4c7f59], 2
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 8]
call fcn.00453e58
mov edx, dword [ebp - 0x40]
mov eax, 0x4c7d54
call fcn.00403bf4
mov eax, 0x4c7d54
call fcn.0048a418
mov eax, dword [0x4c7d54]
cmp byte [eax + 1], 0x3a
jne 0x4921af
mov eax, dword [0x4c7d54]
mov al, byte [eax]
call fcn.004029e8
mov byte [0x4c7eb4], al
jmp 0x4921b6
mov byte [0x4c7eb4], 0
mov byte [0x4c8014], 0
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 8]
call fcn.00453e58
mov edx, dword [ebp - 0x44]
mov eax, dword [0x4c7d58]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 8]
call fcn.00453e58
mov edx, dword [ebp - 0x48]
mov eax, dword [0x4c7d5c]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [0x4c7d5c]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x492227
inc eax
mov dword [ebp - 0x3c], eax
xor esi, esi
lea edx, [ebp - 0x1c]
mov ecx, 4
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 4]
mov ecx, dword [ebp - 0x1c]
mov edx, esi
mov eax, dword [0x4c7d5c]
mov edi, dword [eax]
call dword [edi + 0x24]
inc esi
dec dword [ebp - 0x3c]
jne 0x492202
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 8]
call fcn.00453e58
mov edx, dword [ebp - 0x4c]
mov eax, 0x4c7d64
call fcn.00403bf4
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 8]
call fcn.00453e58
mov edx, dword [ebp - 0x50]
mov eax, 0x4c7d68
call fcn.00403bf4
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 8]
call fcn.00453e58
mov edx, dword [ebp - 0x54]
mov eax, 0x4c7d6c
call fcn.00403bf4
mov eax, dword [ebx + 0x10]
mov dword [0x4c7f05], eax
mov dl, byte [ebx + 0x18]
mov byte [0x4c7f5c], dl
mov edx, dword [ebx + 0x1c]
and edx, 0xff
mov byte [0x4bc458], dl
shl eax, 8
and eax, 0xffff
mov edx, dword [0x4bc804]
mov dword [edx], eax
cmp dword [ebx + 0x14], 0
jle 0x492369
mov byte [0x4c7f16], 1
mov dl, 1
mov eax, dword [0x45366c]
call fcn.00402e48
mov esi, eax
mov dword [0x4c7ef9], esi
mov edx, dword [ebx + 0x14]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [0x4c7ef9]
call fcn.004124a8
mov edx, dword [0x4bc804]
add eax, dword [edx]
dec eax
mov edx, dword [0x4bc804]
mov ecx, dword [edx]
cdq
idiv ecx
mov dword [0x4c7f01], eax
xor eax, eax
mov dword [0x4c7f09], eax
xor eax, eax
mov dword [0x4c7f0d], eax
mov byte [0x4c7f11], 1
mov eax, dword [0x4c7f01]
push eax
mov eax, 0x4c7efd
mov ecx, 1
mov edx, dword [0x4897f0]
call fcn.004056c4
add esp, 4
mov eax, dword [0x4c7f01]
dec eax
test eax, eax
jl 0x492342
inc eax
mov dword [ebp - 0x3c], eax
xor esi, esi
mov eax, dword [0x4c7efd]
mov byte [eax + esi], 0
inc esi
dec dword [ebp - 0x3c]
jne 0x492333
mov eax, dword [0x4c7e94]
mov edx, dword [eax]
call dword [edx + 8]
mov dword [0x4c7fcc], 1
xor eax, eax
mov dword [0x4c7f1f], eax
mov byte [0x4c7ef8], 1
jmp case.0x49209a.203
mov byte [0x4c7f16], 0
jmp case.0x49209a.203
cmp dword [0x4bc568], 0
jne case.0x49209a.203
inc dword [0x4bc568]
xor edx, edx
push ebp
push 0x49285b
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x4c7ef8], 0
jne 0x492831
mov edx, 0x20
mov eax, dword [ebp - 8]
call fcn.0041249c
mov eax, dword [ebx + 0x10]
mov dword [0x4c7f05], eax
mov edx, eax
shl edx, 8
and edx, 0xffff
mov ecx, dword [0x4bc804]
mov dword [ecx], edx
mov esi, eax
shr esi, 8
mov edx, esi
mov eax, dword [0x4c7d4c]
call fcn.00410250
mov esi, eax
cmp byte [esi + 0x18], 2
jne 0x492812
mov byte [esi + 0x18], 0
lea edx, [esi + 8]
mov ecx, 8
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 4]
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 8]
call fcn.00453e58
mov edx, dword [ebp - 0x58]
mov eax, esi
call fcn.00403bf4
mov eax, dword [ebx + 0x18]
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x10], eax
mov dword [0x4c7f12], esi
mov byte [0x4c7f16], 2
cmp byte [0x4c8014], 0
jne 0x492438
call fcn.00491b5c
cmp dword [0x4c7d54], 0
je 0x4927fa
lea edx, [ebp - 0xc]
mov eax, dword [esi]
call fcn.00408fc8
mov eax, dword [ebp - 0xc]
call fcn.004906bc
test al, al
je 0x4927db
push dword [0x4c7d54]
push 0x493334
push dword [esi]
push 0x49334c
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00403ee0
push dword [0x4c7d54]
push dword [esi]
push 0x49335c
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00403ee0
cmp dword [esi + 0xc], 0
jne 0x4924a9
cmp dword [esi + 8], 0xa00000
jb 0x4924e9
jmp 0x4924ab
jl 0x4924e9
mov eax, dword [ebp - 0x28]
call fcn.00408d78
test al, al
jne 0x4924e9
lea eax, [ebp - 0x28]
call fcn.00403ff0
push eax
lea eax, [ebp - 0x24]
call fcn.00403ff0
push eax
call sub.kernel32.dll_MoveFileA
lea eax, [ebp - 0x5c]
mov ecx, 0x493334
mov edx, dword [0x4c7d54]
call fcn.00403e6c
mov eax, dword [ebp - 0x5c]
call fcn.00409204
cmp byte [0x4c7f5b], 0
je 0x4924f8
mov byte [ebp - 0x1d], 0
jmp 0x49252a
mov eax, dword [0x4c7f17]
mov edx, dword [esi]
call fcn.00403f30
jne 0x492526
mov ecx, dword [esi]
lea eax, [ebp - 0x60]
mov edx, dword [0x4c7d54]
call fcn.00403e6c
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x28]
call fcn.00491acc
mov byte [ebp - 0x1d], al
jmp 0x49252a
mov byte [ebp - 0x1d], 0
mov ecx, dword [esi]
lea eax, [ebp - 0x64]
mov edx, dword [0x4c7d54]
call fcn.00403e6c
mov eax, dword [ebp - 0x64]
mov edx, 0x20
call fcn.00408de0
cmp byte [ebp - 0x1d], 0
je 0x49257b
mov ecx, dword [esi]
lea eax, [ebp - 0x6c]
mov edx, dword [0x4c7d54]
call fcn.00403e6c
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
call fcn.00404314
mov eax, dword [ebp - 0x68]
mov dx, 2
call fcn.00453f94
mov dword [0x4c7ef9], eax
jmp 0x4925a7
mov ecx, dword [esi]
lea eax, [ebp - 0x74]
mov edx, dword [0x4c7d54]
call fcn.00403e6c
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
call fcn.00404314
mov eax, dword [ebp - 0x70]
mov dx, 0xffff
call fcn.00453f94
mov dword [0x4c7ef9], eax
cmp dword [0x4c7ef9], 0
je 0x4927bc
cmp byte [0x4c7eb4], 0x41
jb 0x4925d9
mov eax, dword [0x4c7d54]
mov al, byte [eax]
call fcn.004029e8
sub al, 0x41
inc eax
call fcn.00409148
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
jmp 0x4925e7
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0x7fff
cmp dword [esi + 0xc], 0
jne 0x49261c
cmp dword [esi + 8], 0
jne 0x49261c
push 0
push 1
push 0
push 0
push 0
mov ecx, dword [0x4c7f05]
mov edx, 0x76
mov eax, dword [ebp - 4]
call fcn.0048b008
mov al, 1
call fcn.0048e3a0
jmp 0x492847
mov eax, dword [0x4c7ef9]
mov edx, dword [0x44b114]
call fcn.00403008
call fcn.0044b180
add eax, dword [ebp - 0x18]
adc edx, dword [ebp - 0x14]
sub eax, dword [esi + 8]
sbb edx, dword [esi + 0xc]
cmp edx, 0
jne 0x49264f
cmp eax, 0x1312d00
jb 0x49278b
jmp 0x492655
jl 0x49278b
push dword [esi + 0xc]
push dword [esi + 8]
mov eax, dword [0x4c7ef9]
mov edx, dword [0x44b114]
call fcn.00403008
call fcn.0044b254
mov eax, dword [0x4bc804]
mov eax, dword [eax]
cdq
push edx
push eax
mov eax, dword [0x4bc804]
mov eax, dword [eax]
cdq
add eax, dword [esi + 8]
adc edx, dword [esi + 0xc]
sub eax, 1
sbb edx, 0
call fcn.004065f2
mov dword [0x4c7f01], eax
xor eax, eax
mov dword [0x4c7f09], eax
xor eax, eax
mov dword [0x4c7f0d], eax
mov byte [0x4c7f11], 1
mov eax, dword [0x4c7f01]
push eax
mov eax, 0x4c7efd
mov ecx, 1
mov edx, dword [0x4897f0]
call fcn.004056c4
add esp, 4
mov eax, dword [0x4c7e94]
mov edx, dword [eax]
call dword [edx + 8]
mov dword [0x4c7fcc], 1
xor eax, eax
mov dword [0x4c7f1f], eax
mov byte [0x4c7ef8], 1
cmp byte [ebp - 0x1d], 0
je 0x49274a
mov eax, dword [ebp - 0x28]
call fcn.0049003c
mov eax, dword [0x4c7f09]
cmp eax, dword [0x4c7f01]
jne 0x492731
push 0
push 1
push 0
push 0
push 0
mov ecx, dword [0x4c7f05]
mov edx, 0x76
mov eax, dword [ebp - 4]
call fcn.0048b008
mov al, 1
call fcn.0048e3a0
jmp 0x492847
mov dword [0x4c7fcc], 0x7fffffff
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0048b44c
jmp 0x492847
mov eax, dword [0x4c7f01]
dec eax
test eax, eax
jl 0x492769
inc eax
mov dword [ebp - 0x3c], eax
xor esi, esi
mov eax, dword [0x4c7efd]
mov byte [eax + esi], 0
inc esi
dec dword [ebp - 0x3c]
jne 0x49275a
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [0x4c7f05]
mov edx, 0x9c
mov eax, dword [ebp - 4]
call fcn.0048b008
jmp 0x492847
mov eax, 0x4c7f17
mov edx, 0x493370
call fcn.00403bf4
xor eax, eax
call fcn.0048e3a0
push 0
push 0
push 0
mov ecx, dword [ebx + 0x10]
mov edx, 0xad
mov eax, dword [ebp - 4]
call fcn.0048b0cc
jmp 0x492847
push 0
push 1
push 0
push 0
push 0
mov ecx, dword [0x4c7f05]
mov edx, 0x79
mov eax, dword [ebp - 4]
call fcn.0048b008
jmp 0x492847
push 0
push 1
push 0
push 0
push 0
mov ecx, dword [0x4c7f05]
mov edx, 0x79
mov eax, dword [ebp - 4]
call fcn.0048b008
jmp 0x492847
push 0
push 0
push 0
mov ecx, dword [ebx + 0x10]
mov edx, 0xad
mov eax, dword [ebp - 4]
call fcn.0048b0cc
jmp 0x492847
push 0
push 1
push 0
push 0
push 0
mov ecx, dword [0x4c7f05]
mov edx, 0x76
mov eax, dword [ebp - 4]
call fcn.0048b008
jmp 0x492847
push 0
push 0
push 0
mov ecx, dword [ebx + 0x10]
mov edx, 0xab
mov eax, dword [ebp - 4]
call fcn.0048b0cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push case.0x49209a.203
dec dword [0x4bc568]
ret
cmp byte [0x4c7ef8], 0
jne case.0x49209a.203
mov eax, dword [ebx + 0x10]
mov dword [0x4c7f05], eax
shl eax, 8
and eax, 0xffff
mov edx, dword [0x4bc804]
mov dword [edx], eax
mov byte [0x4c7f16], 3
mov dl, 1
mov eax, dword [0x45366c]
call fcn.00402e48
mov esi, eax
mov dword [0x4c7ef9], esi
mov edx, dword [ebx + 0x14]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [ebx + 0x18]
shr eax, 0x10
mov dword [0x4c7e84], eax
mov eax, dword [ebx + 0x18]
and eax, 0xffff
mov dword [0x4c7e88], eax
mov eax, dword [0x4c7ef9]
call fcn.004124a8
mov edx, dword [0x4bc804]
add eax, dword [edx]
dec eax
mov edx, dword [0x4bc804]
mov ecx, dword [edx]
cdq
idiv ecx
mov dword [0x4c7f01], eax
xor eax, eax
mov dword [0x4c7f09], eax
xor eax, eax
mov dword [0x4c7f0d], eax
mov byte [0x4c7f11], 1
mov eax, dword [0x4c7f01]
push eax
mov eax, 0x4c7efd
mov ecx, 1
mov edx, dword [0x4897f0]
call fcn.004056c4
add esp, 4
mov eax, dword [0x4c7f01]
dec eax
test eax, eax
jl 0x492938
inc eax
mov dword [ebp - 0x3c], eax
xor esi, esi
mov eax, dword [0x4c7efd]
mov byte [eax + esi], 0
inc esi
dec dword [ebp - 0x3c]
jne 0x492929
mov eax, dword [0x4c7e94]
mov edx, dword [eax]
call dword [edx + 8]
mov dword [0x4c7fcc], 1
xor eax, eax
mov dword [0x4c7f1f], eax
mov byte [0x4c7ef8], 1
jmp case.0x49209a.203
cmp byte [0x4c8014], 0
jne 0x49296d
call fcn.00491b5c
cmp dword [0x4c7d54], 0
jne 0x492986
mov dword [ebp - 0x18], 0xff000001
mov dword [ebp - 0x14], 0xffffffff
jmp 0x4929bb
mov eax, dword [0x4c7d54]
cmp byte [eax + 1], 0x3a
jne 0x4929ad
mov eax, dword [0x4c7d54]
mov al, byte [eax]
call fcn.004029e8
sub al, 0x41
inc eax
call fcn.00409148
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
jmp 0x4929bb
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0x7fff
cmp dword [ebp - 0x14], 0
jne 0x4929d0
cmp dword [ebp - 0x18], 0x112a880
jb 0x492ad1
jmp 0x4929d6
jl 0x492ad1
push 0
push 0
push 0
mov ecx, dword [ebx + 0x10]
mov edx, 0xab
mov eax, dword [ebp - 4]
call fcn.0048b0cc
cmp byte [0x4c7ef8], 0
jne case.0x49209a.203
mov eax, dword [ebx + 0x10]
mov dword [0x4c7f05], eax
shl eax, 8
and eax, 0xffff
mov edx, dword [0x4bc804]
mov dword [edx], eax
mov byte [0x4c7f16], 4
mov dl, 1
mov eax, dword [0x45366c]
call fcn.00402e48
mov esi, eax
mov dword [0x4c7ef9], esi
mov edx, dword [ebx + 0x14]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [0x4c7ef9]
call fcn.004124a8
mov edx, dword [0x4bc804]
add eax, dword [edx]
dec eax
mov edx, dword [0x4bc804]
mov ecx, dword [edx]
cdq
idiv ecx
mov dword [0x4c7f01], eax
xor eax, eax
mov dword [0x4c7f09], eax
xor eax, eax
mov dword [0x4c7f0d], eax
mov byte [0x4c7f11], 1
mov eax, dword [0x4c7f01]
push eax
mov eax, 0x4c7efd
mov ecx, 1
mov edx, dword [0x4897f0]
call fcn.004056c4
add esp, 4
mov eax, dword [0x4c7f01]
dec eax
test eax, eax
jl 0x492aaa
inc eax
mov dword [ebp - 0x3c], eax
xor esi, esi
mov eax, dword [0x4c7efd]
mov byte [eax + esi], 0
inc esi
dec dword [ebp - 0x3c]
jne 0x492a9b
mov eax, dword [0x4c7e94]
mov edx, dword [eax]
call dword [edx + 8]
mov dword [0x4c7fcc], 1
xor eax, eax
mov dword [0x4c7f1f], eax
mov byte [0x4c7ef8], 1
jmp case.0x49209a.203
push 0
push 0
push 0
mov ecx, dword [ebx + 0x10]
mov edx, 0xad
mov eax, dword [ebp - 4]
call fcn.0048b0cc
jmp case.0x49209a.203
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0048b16c
jmp case.0x49209a.203
mov eax, dword [ebx + 0x1c]
test al, al
je 0x492b10
mov eax, dword [ebp - 8]
call fcn.0048fd24
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 4]
mov eax, ebx
call fcn.0048e264
jmp case.0x49209a.203
mov eax, dword [0x4bcbd8]
cmp dword [eax], 0
jne 0x492b3e
mov ecx, dword [0x4bcbd8]
mov eax, dword [0x4bca8c]
mov eax, dword [eax]
mov edx, dword [0x488978]
call fcn.004312d4
mov eax, dword [0x4bca8c]
mov eax, dword [eax]
call fcn.00430cf0
mov eax, dword [0x4bca8c]
mov eax, dword [eax]
call fcn.00430d94
lea edx, [ebp - 0xc]
lea eax, [ebx + 0x20]
call fcn.00409464
mov edx, dword [0x4bcbb8]
mov edx, dword [edx]
mov eax, dword [0x4bcbd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x58]
call fcn.00418ecc
lea eax, [ebp - 0x78]
mov edx, dword [0x4bc734]
mov edx, dword [edx]
mov edx, dword [edx + 0x38]
call fcn.00403d58
mov edx, dword [ebp - 0x78]
mov eax, dword [0x4bcbd8]
mov eax, dword [eax]
call fcn.0043e6a4
mov eax, dword [0x4bcbd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d4]
mov eax, dword [eax + 0x208]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x54]
mov eax, dword [0x4bcbd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d4]
mov eax, dword [eax + 0x208]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x54]
mov eax, dword [0x4bcbd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d4]
mov eax, dword [eax + 0x208]
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x54]
mov eax, dword [0x4bcbd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d4]
mov eax, dword [eax + 0x208]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x54]
call fcn.00409f10
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x7c]
call fcn.0040aaf8
mov ecx, dword [ebp - 0x7c]
mov eax, dword [0x4bcbd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d4]
mov eax, dword [eax + 0x208]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x54]
lea eax, [ebp - 0x80]
mov edx, dword [0x4bc734]
mov edx, dword [edx]
mov edx, dword [edx + 0x9c]
call fcn.00403d58
mov edx, dword [ebp - 0x80]
mov eax, dword [0x4bcbd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d0]
call fcn.0043e6a4
lea eax, [ebp - 0x84]
mov edx, dword [0x4bc734]
mov edx, dword [edx]
mov edx, dword [edx + 0xa8]
call fcn.00403d58
mov edx, dword [ebp - 0x84]
mov eax, dword [0x4bcbd8]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d8]
call fcn.0043e6a4
lea eax, [ebp - 0x88]
mov edx, dword [0x4bc734]
mov edx, dword [edx]
mov edx, dword [edx + 0x38]
call fcn.00403d58
mov edx, dword [ebp - 0x88]
mov eax, dword [0x4bca8c]
mov eax, dword [eax]
call fcn.00430ec0
mov eax, dword [0x4bcbd8]
mov eax, dword [eax]
call fcn.0042e2c4
mov eax, dword [0x4bcbd8]
mov eax, dword [eax]
call fcn.0043e8b8
jmp case.0x49209a.203
mov eax, dword [ebx + 0x1c]
test al, al
je 0x492cf2
mov eax, dword [ebp - 8]
call fcn.0048fd24
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 4]
lea edi, [ebx + 0x20]
lea edx, [ebp - 0x90]
mov eax, edi
call fcn.00409464
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.00408754
mov edx, dword [ebp - 0x8c]
mov eax, dword [0x4c7ea0]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, edi
call fcn.0040921c
add edi, eax
inc edi
lea edx, [ebp - 0x98]
mov eax, edi
call fcn.00409464
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
call fcn.00408754
mov edx, dword [ebp - 0x94]
mov eax, dword [0x4c7ea4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [0x4c7ea4]
call fcn.00489c88
mov eax, edi
call fcn.0040921c
add edi, eax
inc edi
lea edx, [ebp - 0xa0]
mov eax, edi
call fcn.00409464
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x9c]
call fcn.00408754
mov edx, dword [ebp - 0x9c]
mov eax, dword [0x4c7eac]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, edi
call fcn.0040921c
add edi, eax
inc edi
mov eax, dword [ebx + 0x14]
and eax, 0xffff
cmp eax, 0x535
jne 0x492e2c
lea edx, [ebp - 0xa8]
mov eax, edi
call fcn.00409464
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0xa4]
call fcn.00408754
mov edx, dword [ebp - 0xa4]
mov eax, dword [0x4c7f8c]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, edi
call fcn.0040921c
add edi, eax
inc edi
mov eax, dword [ebx + 4]
add eax, ebx
cmp edi, eax
jae 0x492e2c
lea edx, [ebp - 0xb0]
mov eax, edi
call fcn.00409464
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xac]
call fcn.0047c840
mov edx, dword [ebp - 0xac]
mov eax, 0x4c7eb0
call fcn.00403bf4
mov eax, edi
call fcn.0040921c
mov eax, dword [ebx + 0x18]
mov dword [0x4bc490], eax
call fcn.00489d60
call fcn.0048588c
call fcn.0048a130
jmp case.0x49209a.203
push 0
push 0
push 0
mov ecx, dword [ebx + 0x10]
mov edx, 0xab
mov eax, dword [ebp - 4]
call fcn.0048b0cc
cmp byte [0x4c7ef8], 0
jne case.0x49209a.203
mov edx, 0x20
mov eax, dword [ebp - 8]
call fcn.0041249c
lea edx, [ebp - 0xb4]
mov eax, dword [ebp - 8]
call fcn.00453e58
mov edx, dword [ebp - 0xb4]
mov eax, 0x4c7f17
call fcn.00403bf4
mov eax, dword [ebx + 0x10]
mov dword [0x4c7f05], eax
shl eax, 8
and eax, 0xffff
mov edx, dword [0x4bc804]
mov dword [edx], eax
mov byte [0x4c7f16], 5
mov eax, dword [0x4c7f1b]
mov dword [0x4c7ef9], eax
mov edx, dword [ebx + 0x14]
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [0x4c7ef9]
call fcn.004124a8
mov edx, dword [0x4bc804]
add eax, dword [edx]
dec eax
mov edx, dword [0x4bc804]
mov ecx, dword [edx]
cdq
idiv ecx
mov dword [0x4c7f01], eax
xor eax, eax
mov dword [0x4c7f09], eax
xor eax, eax
mov dword [0x4c7f0d], eax
mov byte [0x4c7f11], 1
mov eax, dword [0x4c7f01]
push eax
mov eax, 0x4c7efd
mov ecx, 1
mov edx, dword [0x4897f0]
call fcn.004056c4
add esp, 4
mov eax, dword [0x4c7f01]
dec eax
test eax, eax
jl 0x492f3b
inc eax
mov dword [ebp - 0x3c], eax
xor esi, esi
mov eax, dword [0x4c7efd]
mov byte [eax + esi], 0
inc esi
dec dword [ebp - 0x3c]
jne 0x492f2c
mov eax, dword [0x4c7e94]
mov edx, dword [eax]
call dword [edx + 8]
mov dword [0x4c7fcc], 1
xor eax, eax
mov dword [0x4c7f1f], eax
mov byte [0x4c7ef8], 1
jmp case.0x49209a.203
mov eax, dword [0x4bc868]
cmp byte [eax], 0
je 0x492fab
mov eax, dword [0x4bc998]
mov byte [eax], 1
mov eax, dword [0x4bcc00]
mov dl, byte [0x4932e0]
cmp dl, byte [eax]
je 0x492f92
mov dl, byte [0x4932e4]
xor ecx, ecx
xor eax, eax
call fcn.00487830
mov eax, dword [0x4bc81c]
mov byte [eax], 1
mov eax, dword [0x4bc900]
mov eax, dword [eax]
call fcn.0042e10c
jmp case.0x49209a.203
mov esi, 1
mov eax, dword [0x4bcb2c]
push dword [eax]
push 0x493380
lea ecx, [ebp - 0xb8]
mov edx, 2
mov eax, esi
call fcn.00408b44
push dword [ebp - 0xb8]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403ee0
mov edx, 0x20
mov eax, dword [ebp - 0xc]
call fcn.00408de0
lea eax, [ebp - 0xbc]
mov edx, dword [ebp - 0xc]
call fcn.00404314
mov eax, dword [ebp - 0xbc]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.004557e8
test al, al
jne 0x493013
inc esi
jmp 0x492fb0
mov edx, 0x22
mov eax, dword [ebp - 0xc]
call fcn.00408de0
mov eax, 0x4c7eb8
mov edx, dword [ebp - 0xc]
call fcn.00403bf4
mov eax, 0x493300
mov ecx, dword [0x4c7eb8]
mov edx, 0x4932f0
call fcn.00454040
mov eax, dword [ebp - 8]
call fcn.004124a8
mov ecx, eax
shl ecx, 2
lea ecx, [ecx + ecx*2]
mov eax, 0x493300
mov edx, 0x493390
call fcn.004544d8
mov byte [0x4bc49c], 1
cmp byte [0x4bc4b4], 0
jne 0x493088
mov edx, 0x20
mov eax, dword [0x4c7eb8]
call fcn.004911b8
test al, al
je case.0x49209a.203
cmp byte [0x4bc48c], 0
jne case.0x49209a.203
call fcn.00489b08
mov byte [0x4bc48c], 1
jmp case.0x49209a.203
cmp dword [0x4bc538], 0
je case.0x49209a.203
mov eax, dword [ebx + 0x14]
cmp eax, dword [0x4c7fe8]
jne case.0x49209a.203
mov eax, dword [ebx + 0x1c]
test al, al
je 0x4930d1
mov eax, dword [ebp - 8]
call fcn.0048fd24
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 4]
cmp byte [0x4c7fec], 2
jne 0x493194
mov ecx, dword [ebx + 4]
sub ecx, 0x20
lea edx, [ebx + 0x20]
mov eax, dword [0x4bc538]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [0x4bc538]
call fcn.0044b1d0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
cmp edx, dword [0x4c7ff8]
jne case.0x49209a.203
cmp eax, dword [0x4c7ff4]
jne case.0x49209a.203
mov dword [0x4c7fe8], 0xffffffff
mov eax, dword [0x4bc538]
call fcn.00402e78
xor eax, eax
mov dword [0x4bc538], eax
lea eax, [ebp - 0xc0]
mov edx, dword [0x4c7fe4]
call fcn.00404314
mov eax, dword [ebp - 0xc0]
mov edx, dword [0x4c7ffc]
call fcn.00453bb4
mov edx, dword [0x4c7ff0]
mov eax, dword [0x4c7fe4]
call fcn.00408de0
push 0
push 1
push 0
push 0
push 0
mov ecx, dword [0x4c7fe8]
mov edx, 0xc4
mov eax, dword [ebp - 4]
call fcn.0048b008
jmp case.0x49209a.203
mov ecx, dword [ebx + 4]
sub ecx, 0x20
lea edx, [ebx + 0x20]
mov eax, dword [0x4bc538]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [0x4bc538]
call fcn.0041248c
cdq
cmp edx, dword [0x4c7ff8]
jne case.0x49209a.203
cmp eax, dword [0x4c7ff4]
jne case.0x49209a.203
mov dword [0x4c7fe8], 0xffffffff
xor edx, edx
mov eax, dword [0x4bc538]
call fcn.0041249c
mov al, byte [0x4c7fec]
sub al, 1
jb 0x4931e5
je 0x4931ec
jmp 0x4931f1
call fcn.0048e06c
jmp 0x4931f1
call fcn.0048e118
mov eax, dword [0x4bc538]
call fcn.00402e78
xor eax, eax
mov dword [0x4bc538], eax
push 0
push 1
push 0
push 0
push 0
mov ecx, dword [0x4c7fe8]
mov edx, 0xc4
mov eax, dword [ebp - 4]
call fcn.0048b008
jmp case.0x49209a.203
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0048b16c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493269
mov eax, dword [ebp - 8]
call fcn.00402e78
ret
xor edx, edx
mov eax, dword [0x4c6d40]
call fcn.0041249c
jmp 0x493269
mov eax, dword [0x4c6d40]
call fcn.004124a8
cmp eax, 0x20
je 0x491c74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4932d8
lea eax, [ebp - 0xc0]
mov edx, 2
call fcn.004041e8
lea eax, [ebp - 0xb8]
mov edx, 0x12
call fcn.00403bc4
lea eax, [ebp - 0x70]
call fcn.004041d0
lea eax, [ebp - 0x6c]
call fcn.00403ba0
lea eax, [ebp - 0x68]
call fcn.004041d0
lea eax, [ebp - 0x64]
mov edx, 0xa
call fcn.00403bc4
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00403bc4
lea eax, [ebp - 0xc]
call fcn.00403ba0
ret