Function at 0x489228
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x40
push 0
push 0
dec ecx
jne 0x489231
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov byte [ebp - 0xd], dl
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405380
mov eax, dword [ebp + 8]
call fcn.00405380
xor eax, eax
push ebp
push 0x48a38e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x211c1], 0xff
mov byte [ebx + 0x211c2], 0xff
mov byte [ebx + 0x211c3], 0xff
mov byte [ebx + 0x2118f], 0x3f
movzx eax, byte [ebx + 0x21200]
mov byte [ebp - 0x39], al
mov eax, ebx
xor ecx, ecx
mov edx, 0x21bb0
call fcn.00403468
movzx eax, byte [ebp - 0x39]
mov byte [ebx + 0x21200], al
cmp dword [ebp + 8], 0
je 0x489399
cmp dword [ebx + 0x21204], 0
je 0x4892c0
mov eax, dword [ebx + 0x21204]
call fcn.00403b58
push 0xffff
lea eax, [ebp - 0x18c]
mov edx, dword [ebp + 8]
call fcn.00405a98
mov ecx, dword [ebp - 0x18c]
mov dl, 1
mov eax, dword [0x4189c0]
call fcn.0041d960
mov dword [ebx + 0x21204], eax
cmp dword [ebx + 0x21204], 0
je 0x489399
lea eax, [ebp - 0x190]
call fcn.00484458
mov edx, dword [ebp - 0x190]
lea eax, [ebp - 8]
mov ecx, 0x48a3ac
call fcn.00405118
mov eax, dword [ebp - 8]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x48933e
mov eax, dword [ebp - 0x40]
sub eax, 0xa
cmp word [eax], 1
je 0x48933e
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00404f24
mov dword [ebp - 0x40], eax
lea eax, [ebp - 8]
call fcn.00405400
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x489371
mov eax, dword [ebp - 0x44]
sub eax, 0xa
cmp word [eax], 1
je 0x489371
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00404f24
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x489388
mov eax, dword [ebp - 0x48]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0x21204]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
mov esi, dword [eax]
call dword [esi + 0x10]
mov eax, ebx
call fcn.00488434
mov edx, 0x48a3b0
lea eax, [ebp - 0x153]
call fcn.0040be90
mov byte [ebx + 0x2118e], 0
mov dword [ebp - 0x2c], 0x19
xor eax, eax
mov dword [ebp - 0x30], eax
movzx eax, byte [ebp - 0xd]
mov byte [ebx + 0x21199], al
cmp byte [ebx + 0x21199], 0
jne 0x489e30
mov dword [ebp - 0x28], 0x43
movzx eax, byte [ebp - 0x28]
mov byte [ebp - 0x14f], al
lea eax, [ebp - 0x14f]
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 5
jne 0x489c89
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x153]
push eax
call sub.kernel32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x489607
push 0x48a3c4
call sub.kernel32.dll_GetLastError
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x198]
call fcn.0040b608
push dword [ebp - 0x198]
push 0x48a3f8
lea eax, [ebp - 0x194]
mov edx, 3
call fcn.00405d20
mov edx, dword [ebp - 0x194]
lea eax, [ebp - 8]
mov ecx, 0
call fcn.00405ac0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x48949c
mov eax, dword [ebp - 0x50]
sub eax, 0xa
cmp word [eax], 1
je 0x48949c
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00404f24
mov dword [ebp - 0x50], eax
lea eax, [ebp - 8]
call fcn.00405400
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x4894cf
mov eax, dword [ebp - 0x54]
sub eax, 0xa
cmp word [eax], 1
je 0x4894cf
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00404f24
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x4894e6
mov eax, dword [ebp - 0x58]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 0x21204]
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x5c]
mov esi, dword [eax]
call dword [esi + 0x10]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x153]
push eax
call sub.kernel32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x4895ea
push 0x48a3c4
call sub.kernel32.dll_GetLastError
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1a0]
call fcn.0040b608
push dword [ebp - 0x1a0]
push 0x48a3f8
lea eax, [ebp - 0x19c]
mov edx, 3
call fcn.00405d20
mov edx, dword [ebp - 0x19c]
lea eax, [ebp - 8]
mov ecx, 0
call fcn.00405ac0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x48958f
mov eax, dword [ebp - 0x60]
sub eax, 0xa
cmp word [eax], 1
je 0x48958f
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00404f24
mov dword [ebp - 0x60], eax
lea eax, [ebp - 8]
call fcn.00405400
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x4895c2
mov eax, dword [ebp - 0x64]
sub eax, 0xa
cmp word [eax], 1
je 0x4895c2
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00404f24
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x4895d9
mov eax, dword [ebp - 0x68]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x68], eax
mov eax, dword [ebx + 0x21204]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
mov esi, dword [eax]
call dword [esi + 0x10]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x153]
push eax
call sub.kernel32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
je 0x489b8a
lea eax, [ebp - 0x18]
xor ecx, ecx
mov edx, 8
call fcn.00403468
push 0
lea eax, [ebp - 0x1c]
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x41018
push edi
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x4896cf
movzx eax, byte [ebx + 0x2118e]
imul eax, eax, 0x85
movzx edx, byte [ebp - 0x14]
mov byte [ebx + eax + 0x2040e], dl
movzx eax, byte [ebx + 0x2118e]
imul eax, eax, 0x85
movzx edx, byte [ebp - 0x12]
mov byte [ebx + eax + 0x2040f], dl
movzx eax, byte [ebx + 0x2118e]
imul eax, eax, 0x85
movzx edx, byte [ebp - 0x11]
mov byte [ebx + eax + 0x20410], dl
movzx eax, byte [ebx + 0x2118e]
imul eax, eax, 0x85
movzx edx, byte [ebp - 0x28]
mov byte [ebx + eax + 0x2040c], dl
movzx eax, byte [ebx + 0x2118e]
imul eax, eax, 0x85
movzx edx, byte [ebp - 0x38]
mov byte [ebx + eax + 0x2040d], dl
movzx eax, byte [ebx + 0x2118e]
mov dword [ebp - 0x34], eax
inc byte [ebx + 0x2118e]
inc dword [ebp - 0x30]
jmp 0x489735
imul eax, dword [ebp - 0x2c], 0x85
movzx edx, byte [ebp - 0x14]
mov byte [ebx + eax + 0x2040e], dl
imul eax, dword [ebp - 0x2c], 0x85
mov byte [ebx + eax + 0x2040f], 0
imul eax, dword [ebp - 0x2c], 0x85
mov byte [ebx + eax + 0x20410], 0
imul eax, dword [ebp - 0x2c], 0x85
movzx edx, byte [ebp - 0x28]
mov byte [ebx + eax + 0x2040c], dl
movzx eax, byte [ebx + 0x2118e]
imul eax, eax, 0x85
movzx edx, byte [ebp - 0x38]
mov byte [ebx + eax + 0x2040d], dl
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
dec dword [ebp - 0x2c]
inc dword [ebp - 0x30]
movzx eax, byte [ebp - 0x28]
mov byte [ebx + 0x2118f], al
mov dword [ebx], edi
lea eax, [ebp - 0x10c]
xor ecx, ecx
mov edx, 0x60
call fcn.00403468
mov byte [ebp - 0x109], 0x48
mov dword [ebp - 0x100], 0x40
lea eax, [ebx + 8]
mov dword [ebp - 0xfc], eax
mov byte [ebp - 0xf7], 6
mov byte [ebp - 0xdc], 0x12
mov byte [ebp - 0xd8], 0x40
mov byte [ebp - 0xf8], 0x18
mov byte [ebp - 0x10c], 2
lea edx, [ebp - 0x10c]
mov eax, ebx
xor ecx, ecx
call fcn.00489034
cmp dword [ebx + 0x21204], 0
je 0x489895
lea eax, [ebp - 0x1a8]
movzx edx, byte [ebp - 0x14f]
call fcn.004059d8
push dword [ebp - 0x1a8]
push 0x48a40c
lea eax, [ebp - 0x14f]
push eax
call sub.kernel32.dll_GetDriveTypeA
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1ac]
call fcn.0040b608
push dword [ebp - 0x1ac]
push 0x48a420
lea eax, [ebp - 0x1a4]
mov edx, 4
call fcn.00405d20
mov edx, dword [ebp - 0x1a4]
lea eax, [ebp - 8]
mov ecx, 0
call fcn.00405ac0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x48983a
mov eax, dword [ebp - 0x70]
sub eax, 0xa
cmp word [eax], 1
je 0x48983a
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00404f24
mov dword [ebp - 0x70], eax
lea eax, [ebp - 8]
call fcn.00405400
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x48986d
mov eax, dword [ebp - 0x74]
sub eax, 0xa
cmp word [eax], 1
je 0x48986d
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00404f24
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x489884
mov eax, dword [ebp - 0x78]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
mov eax, dword [ebx + 0x21204]
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x7c]
mov esi, dword [eax]
call dword [esi + 0x10]
cmp byte [ebp - 0x10b], 1
jne 0x4899da
cmp byte [ebx + 8], 5
jne 0x4899da
mov eax, 0x28
lea edi, [ebx + 0x10]
cmp byte [edi], 0x20
jae 0x4898bc
mov byte [edi], 0x20
inc edi
dec eax
jne 0x4898b4
lea edx, [ebp - 0x175]
lea eax, [ebx + 0x10]
mov ecx, 8
call fcn.00403168
mov byte [ebp - 0x16d], 0
lea edx, [ebp - 0x164]
lea eax, [ebx + 0x18]
mov ecx, 0x10
call fcn.00403168
mov byte [ebp - 0x154], 0
lea edx, [ebp - 0x186]
lea eax, [ebx + 0x28]
mov ecx, 0x10
call fcn.00403168
mov byte [ebp - 0x182], 0
lea eax, [ebp - 0x1b0]
push eax
movzx eax, byte [ebp - 0x14]
mov dword [ebp - 0x1e8], eax
mov byte [ebp - 0x1e4], 0
movzx eax, byte [ebp - 0x12]
mov dword [ebp - 0x1e0], eax
mov byte [ebp - 0x1dc], 0
movzx eax, byte [ebp - 0x11]
mov dword [ebp - 0x1d8], eax
mov byte [ebp - 0x1d4], 0
movzx eax, byte [ebx + 0x2118f]
mov byte [ebp - 0x1d0], al
mov byte [ebp - 0x1cc], 2
lea eax, [ebp - 0x175]
mov dword [ebp - 0x1c8], eax
mov byte [ebp - 0x1c4], 6
lea eax, [ebp - 0x164]
mov dword [ebp - 0x1c0], eax
mov byte [ebp - 0x1bc], 6
lea eax, [ebp - 0x186]
mov dword [ebp - 0x1b8], eax
mov byte [ebp - 0x1b4], 6
lea edx, [ebp - 0x1e8]
mov ecx, 6
mov eax, 0x48a438
call fcn.0040c3ec
mov edx, dword [ebp - 0x1b0]
lea eax, [ebp - 0xc]
mov ecx, 0
call fcn.00405ac0
mov eax, dword [ebp - 0xc]
call fcn.00405390
mov edx, eax
imul eax, dword [ebp - 0x34], 0x85
lea eax, [ebx + eax + 0x20411]
call fcn.0040be90
cmp dword [ebx + 0x21204], 0
je 0x489aab
lea eax, [ebp - 8]
imul edx, dword [ebp - 0x34], 0x85
lea edx, [ebx + edx + 0x20411]
mov ecx, 0x80
push 0
call fcn.00405018
mov eax, dword [ebp - 8]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x489a2c
mov eax, dword [ebp - 0x80]
sub eax, 0xa
cmp word [eax], 1
je 0x489a2c
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00404f24
mov dword [ebp - 0x80], eax
lea eax, [ebp - 8]
call fcn.00405400
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
je 0x489a6e
mov eax, dword [ebp - 0x84]
sub eax, 0xa
cmp word [eax], 1
je 0x489a6e
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00404f24
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x489a94
mov eax, dword [ebp - 0x88]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x88], eax
mov eax, dword [ebx + 0x21204]
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x8c]
mov esi, dword [eax]
call dword [esi + 0x10]
lea eax, [ebp - 0x1ec]
push eax
movzx eax, byte [ebp - 0x14]
mov dword [ebp - 0x1e8], eax
mov byte [ebp - 0x1e4], 0
movzx eax, byte [ebp - 0x12]
mov dword [ebp - 0x1e0], eax
mov byte [ebp - 0x1dc], 0
movzx eax, byte [ebp - 0x11]
mov dword [ebp - 0x1d8], eax
mov byte [ebp - 0x1d4], 0
movzx eax, byte [ebx + 0x2118f]
mov byte [ebp - 0x1d0], al
mov byte [ebp - 0x1cc], 2
lea eax, [ebp - 0x175]
mov dword [ebp - 0x1c8], eax
mov byte [ebp - 0x1c4], 6
lea eax, [ebp - 0x164]
mov dword [ebp - 0x1c0], eax
mov byte [ebp - 0x1bc], 6
lea eax, [ebp - 0x186]
mov dword [ebp - 0x1b8], eax
mov byte [ebp - 0x1b4], 6
lea edx, [ebp - 0x1e8]
mov ecx, 6
mov eax, 0x48a438
call fcn.0040c3ec
mov edx, dword [ebp - 0x1ec]
lea eax, [ebp - 0xc]
mov ecx, 0
call fcn.00405ac0
mov eax, dword [ebp - 0xc]
call fcn.00405390
mov edx, eax
imul eax, dword [ebp - 0x34], 0x85
lea eax, [ebx + eax + 0x20411]
call fcn.0040be90
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [ebx], 0xffffffff
jmp 0x489daa
push 0x48a3c4
call sub.kernel32.dll_GetLastError
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1f4]
call fcn.0040b608
push dword [ebp - 0x1f4]
push 0x48a3f8
lea eax, [ebp - 0x1f0]
mov edx, 3
call fcn.00405d20
mov edx, dword [ebp - 0x1f0]
lea eax, [ebp - 8]
mov ecx, 0
call fcn.00405ac0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x489c05
mov eax, dword [ebp - 0x90]
sub eax, 0xa
cmp word [eax], 1
je 0x489c05
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00404f24
mov dword [ebp - 0x90], eax
lea eax, [ebp - 8]
call fcn.00405400
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x489c47
mov eax, dword [ebp - 0x94]
sub eax, 0xa
cmp word [eax], 1
je 0x489c47
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00404f24
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x489c6d
mov eax, dword [ebp - 0x98]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x98], eax
mov eax, dword [ebx + 0x21204]
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp - 0x9c]
mov esi, dword [eax]
call dword [esi + 0x10]
jmp 0x489daa
cmp dword [ebx + 0x21204], 0
je 0x489daa
lea eax, [ebp - 0x1fc]
movzx edx, byte [ebp - 0x14f]
call fcn.004059d8
push dword [ebp - 0x1fc]
push 0x48a474
lea eax, [ebp - 0x14f]
push eax
call sub.kernel32.dll_GetDriveTypeA
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x200]
call fcn.0040b608
push dword [ebp - 0x200]
lea eax, [ebp - 0x1f8]
mov edx, 3
call fcn.00405d20
mov edx, dword [ebp - 0x1f8]
lea eax, [ebp - 8]
mov ecx, 0
call fcn.00405ac0
mov eax, dword [ebp - 8]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
je 0x489d2b
mov eax, dword [ebp - 0xa0]
sub eax, 0xa
cmp word [eax], 1
je 0x489d2b
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00404f24
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 8]
call fcn.00405400
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
je 0x489d6d
mov eax, dword [ebp - 0xa4]
sub eax, 0xa
cmp word [eax], 1
je 0x489d6d
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00404f24
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
je 0x489d93
mov eax, dword [ebp - 0xa8]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebx + 0x21204]
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xac]
mov esi, dword [eax]
call dword [esi + 0x10]
cmp dword [ebx + 0x21204], 0
je 0x489e23
lea eax, [ebp - 8]
mov edx, 0x48a48c
call fcn.00404dd4
mov esi, dword [ebp - 8]
test esi, esi
je 0x489de1
mov eax, esi
sub eax, 0xa
cmp word [eax], 1
je 0x489de1
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00404f24
mov esi, eax
lea eax, [ebp - 8]
call fcn.00405400
mov esi, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x489e0a
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x489e0a
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00404f24
test eax, eax
je 0x489e13
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx + 0x21204]
mov ecx, eax
mov eax, esi
xchg edx, eax
mov esi, dword [eax]
call dword [esi + 0x10]
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0x5b
jne 0x4893e1
cmp dword [ebp - 0x30], 0
je 0x489f0b
mov byte [ebx + 0x211a0], 1
mov byte [ebx + 0x211a1], 1
mov eax, 0x19
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x19
je 0x489efa
mov byte [ebp - 0x24], 0
movzx esi, byte [ebx + 0x2118e]
dec esi
test esi, esi
jl 0x489e8b
inc esi
lea edi, [ebx + 0x2040e]
movzx eax, byte [edi]
cmp al, byte [ebp - 0x24]
jbe 0x489e82
movzx eax, byte [edi]
mov byte [ebp - 0x24], al
add edi, 0x85
dec esi
jne 0x489e74
inc byte [ebp - 0x24]
mov esi, 0x19
sub esi, dword [ebp - 0x2c]
inc esi
sub esi, 0x19
jg 0x489efa
dec esi
mov dword [ebp - 0x28], 0x19
lea edi, [ebx + 0x2110b]
movzx eax, byte [ebp - 0x24]
mov byte [edi], al
inc byte [ebp - 0x24]
movzx eax, byte [edi]
add al, 0x30
mov byte [edi + 3], al
mov byte [edi + 5], 0x30
mov byte [edi + 7], 0x30
movzx eax, byte [ebx + 0x2118e]
mov edx, 0x19
sub edx, dword [ebp - 0x28]
add eax, edx
imul eax, eax, 0x85
lea edx, [ebx + eax + 0x2040c]
lea eax, [edi - 2]
mov ecx, 0x85
call fcn.00403168
dec dword [ebp - 0x28]
sub edi, 0x85
inc esi
jne 0x489eaa
movzx eax, byte [ebp - 0x2c]
add byte [ebx + 0x2118e], al
mov bl, 1
jmp 0x48a335
mov byte [ebx + 0x2118e], 0
cmp dword [ebp - 4], 0
jne 0x489f26
push 0x48a490
call sub.kernel32.dll_LoadLibraryW
mov esi, eax
jmp 0x489f36
lea eax, [ebp - 4]
call fcn.00405400
push eax
call sub.kernel32.dll_LoadLibraryW
mov esi, eax
test esi, esi
jne 0x489f41
xor ebx, ebx
jmp 0x48a335
push 0x48a4ac
push esi
call fcn.00407f5c
mov dword [0x569018], eax
push 0x48a4d8
push esi
call fcn.00407f5c
mov dword [0x569014], eax
mov eax, dword [0x569014]
mov dword [ebx + 0x211a4], eax
cmp dword [0x569018], 0
je 0x489f7e
cmp dword [0x569014], 0
jne 0x489f85
xor ebx, ebx
jmp 0x48a335
call dword [0x569018]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x489f9b
xor ebx, ebx
jmp 0x48a335
mov byte [ebx + 0x211a0], 1
lea eax, [ebp - 0x148]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403468
mov byte [ebp - 0x148], 0
lea eax, [ebp - 0x148]
push eax
call dword [0x569014]
pop ecx
mov dword [ebp - 0x1c], eax
cmp byte [ebp - 0x140], 0
jne 0x489fdc
mov byte [ebp - 0x140], 7
movzx eax, byte [ebp - 0x140]
dec eax
test al, al
jb 0x48a333
inc eax
mov byte [ebp - 0x3a], al
mov byte [ebp - 0x21], 0
mov byte [ebp - 0x22], 0
mov byte [ebp - 0x23], 0
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventW
mov esi, eax
lea eax, [ebp - 0x10c]
mov ecx, 0x60
xor edx, edx
call fcn.00403468
mov byte [ebp - 0x109], 0x48
mov dword [ebp - 0x100], 0x40
lea eax, [ebx + 8]
mov dword [ebp - 0xfc], eax
mov byte [ebp - 0xf7], 6
mov byte [ebp - 0xdc], 0x12
mov byte [ebp - 0xd8], 0x40
movzx eax, byte [ebp - 0x21]
mov byte [ebp - 0x10a], al
movzx eax, byte [ebp - 0x22]
mov byte [ebp - 0x104], al
movzx eax, byte [ebp - 0x23]
mov byte [ebp - 0x103], al
mov byte [ebp - 0xf8], 0x18
mov byte [ebp - 0x10c], 2
mov dword [ebp - 0xf4], esi
lea eax, [ebp - 0x10c]
push eax
call dword [0x569014]
pop ecx
test eax, eax
jne 0x48a0a6
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_WaitForSingleObject
push esi
call sub.kernel32.dll_ResetEvent
push esi
call sub.kernel32.dll_CloseHandle_1
jmp 0x48a0b2
push esi
call sub.kernel32.dll_ResetEvent
push esi
call sub.kernel32.dll_CloseHandle_1
cmp byte [ebp - 0x10b], 1
jne 0x48a30d
cmp byte [ebx + 8], 5
jne 0x48a30d
mov dword [ebp - 0x28], 0x28
lea eax, [ebx + 0x10]
cmp byte [eax], 0x20
jae 0x48a0db
mov byte [eax], 0x20
inc eax
dec dword [ebp - 0x28]
jne 0x48a0d3
lea edx, [ebp - 0x175]
lea eax, [ebx + 0x10]
mov ecx, 8
call fcn.00403168
mov byte [ebp - 0x16d], 0
lea edx, [ebp - 0x164]
lea eax, [ebx + 0x18]
mov ecx, 0x10
call fcn.00403168
mov byte [ebp - 0x154], 0
lea edx, [ebp - 0x186]
lea eax, [ebx + 0x28]
mov ecx, 0x10
call fcn.00403168
mov byte [ebp - 0x182], 0
movzx eax, byte [ebx + 0x2118e]
imul eax, eax, 0x85
movzx edx, byte [ebp - 0x21]
mov byte [ebx + eax + 0x2040e], dl
movzx eax, byte [ebx + 0x2118e]
imul eax, eax, 0x85
movzx edx, byte [ebp - 0x22]
mov byte [ebx + eax + 0x2040f], dl
movzx eax, byte [ebx + 0x2118e]
imul eax, eax, 0x85
movzx edx, byte [ebp - 0x23]
mov byte [ebx + eax + 0x20410], dl
movzx eax, byte [ebx + 0x2118e]
imul eax, eax, 0x85
movzx edx, byte [ebx + 8]
mov byte [ebx + eax + 0x2040d], dl
mov eax, ebx
call fcn.00488e98
mov byte [ebx + 0x2118f], al
movzx eax, byte [ebx + 0x2118f]
cmp al, 0x80
je 0x48a1ab
cmp al, 0x81
jne 0x48a1b2
mov byte [ebx + 0x2118f], 0x3f
movzx eax, byte [ebx + 0x2118e]
imul eax, eax, 0x85
movzx edx, byte [ebx + 0x2118f]
mov byte [ebx + eax + 0x2040c], dl
cmp byte [ebx + 0x2118f], 0
je 0x48a30d
mov byte [ebx + 0x211a8], 6
movzx eax, byte [ebp - 0x21]
mov byte [ebx + 0x211aa], al
movzx eax, byte [ebp - 0x22]
mov byte [ebx + 0x211b0], al
movzx eax, byte [ebp - 0x23]
mov byte [ebx + 0x211b1], al
lea eax, [ebx + 0x211a8]
push eax
call dword [0x569014]
pop ecx
cmp eax, 1
jne 0x48a235
movzx eax, byte [ebx + 0x211b3]
add al, 0x41
mov byte [ebx + 0x2118f], al
movzx edx, byte [ebx + 0x2118e]
imul edx, edx, 0x85
mov byte [ebx + edx + 0x2040c], al
lea eax, [ebp - 0x204]
push eax
movzx eax, byte [ebp - 0x21]
mov dword [ebp - 0x1e8], eax
mov byte [ebp - 0x1e4], 0
movzx eax, byte [ebp - 0x22]
mov dword [ebp - 0x1e0], eax
mov byte [ebp - 0x1dc], 0
movzx eax, byte [ebp - 0x23]
mov dword [ebp - 0x1d8], eax
mov byte [ebp - 0x1d4], 0
movzx eax, byte [ebx + 0x2118f]
mov byte [ebp - 0x1d0], al
mov byte [ebp - 0x1cc], 2
lea eax, [ebp - 0x175]
mov dword [ebp - 0x1c8], eax
mov byte [ebp - 0x1c4], 6
lea eax, [ebp - 0x164]
mov dword [ebp - 0x1c0], eax
mov byte [ebp - 0x1bc], 6
lea eax, [ebp - 0x186]
mov dword [ebp - 0x1b8], eax
mov byte [ebp - 0x1b4], 6
lea edx, [ebp - 0x1e8]
mov ecx, 6
mov eax, 0x48a438
call fcn.0040c3ec
mov edx, dword [ebp - 0x204]
lea eax, [ebp - 0xc]
mov ecx, 0
call fcn.00405ac0
mov eax, dword [ebp - 0xc]
call fcn.00405390
mov edx, eax
movzx eax, byte [ebx + 0x2118e]
imul eax, eax, 0x85
lea eax, [ebx + eax + 0x20411]
call fcn.0040be90
inc byte [ebx + 0x2118e]
inc byte [ebp - 0x23]
cmp byte [ebp - 0x23], 7
jne 0x489ffc
inc byte [ebp - 0x22]
cmp byte [ebp - 0x22], 8
jne 0x489ff8
inc byte [ebp - 0x21]
dec byte [ebp - 0x3a]
jne 0x489ff4
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a395
lea eax, [ebp - 0x204]
mov edx, 7
call fcn.00405864
lea eax, [ebp - 0x1b0]
mov edx, 8
call fcn.00405864
lea eax, [ebp - 0x190]
call fcn.00404d24
lea eax, [ebp - 0x18c]
call fcn.0040585c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404d48
lea eax, [ebp + 8]
call fcn.00404d24
ret