Function at 0x5166b0
Capabilities:
Get disk information
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x54af7f
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x463df0]
xor eax, esp
mov dword [esp + 0x2fc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463df0]
xor eax, esp
push eax
lea eax, [esp + 0x314]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x324]
xor esi, esi
mov ebp, ecx
mov dword [esp + 0x28], esi
mov ecx, dword [ebp + 0x290]
sub ecx, dword [ebp + 0x28c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x516720
call fcn.00526bf6
mov eax, dword [ebp + 0x28c]
lea ecx, [ebx + ebx*2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
add eax, ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
and dword [ebp + 0x78], 0xfffffbff
mov eax, 0x30c30c31
imul ecx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x28], edi
mov dword [esp + 0x3c], esi
call fcn.004af8f0
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x50]
mov dword [esp + 0x31c], esi
sar eax, 2
test eax, eax
jle 0x5167a0
cmp esi, eax
jb 0x516784
call fcn.00526bf6
mov ecx, dword [esp + 0x50]
mov dword [ecx + esi*4], 0
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x50]
inc esi
sar eax, 2
cmp esi, eax
jl 0x51677d
nop
push 0
push ebx
mov ecx, ebp
call fcn.00512270
mov dword [esp + 0x20], 0
test edi, edi
jle 0x5168f3
mov dword [esp + 0x18], 0
mov ecx, dword [ebp + 0x290]
sub ecx, dword [ebp + 0x28c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x324], eax
jb 0x5167ed
call fcn.00526bf6
mov esi, dword [ebp + 0x28c]
add esi, dword [esp + 0x3c]
mov eax, 0x30c30c31
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x20], ecx
jb 0x516819
call fcn.00526bf6
mov esi, dword [esi + 0xc]
add esi, dword [esp + 0x18]
mov edx, dword [esi + 8]
and edx, 0x17
cmp dl, 5
jne 0x516998
mov dword [esi + 8], 1
xor ebx, ebx
lea edi, [esi + 0x90]
mov edi, edi
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
push eax
push ecx
mov ecx, dword [edi]
push edi
push esi
call fcn.00513e10
cmp dword [edi + 4], 0
jne 0x516875
test eax, eax
je 0x516875
mov dword [esi + 0xa4], eax
xor al, al
test ebx, ebx
jne 0x5168c7
mov dword [esi + 8], 2
mov ebx, 1
jmp 0x516840
mov byte [esp + 0x17], 1
test ebx, ebx
jle 0x5168c3
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
je 0x5168c3
mov eax, dword [esi + 4]
and eax, 0x700
cmp eax, 0x100
je 0x5168b4
cmp eax, 0x200
je 0x5168a8
cmp eax, 0x400
jne 0x5168be
mov dword [esi + 0xa4], 0xc8
jmp 0x5168be
mov dword [esi + 0xa4], 0x11
mov byte [esp + 0x17], 0
mov al, byte [esp + 0x17]
mov dword [esi + 8], 5
test al, al
jne 0x5176bc
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add dword [esp + 0x18], 0xa8
inc eax
cmp eax, edi
mov dword [esp + 0x20], eax
jl 0x5167c2
push 1
push 2
lea ecx, [esp + 0x94]
mov byte [esp + 0x26], 0
call fcn.0047d9e0
xor ebx, ebx
push ebx
push edi
lea ecx, [esp + 0x70]
mov byte [esp + 0x324], 1
mov dword [esp + 0x48], ebx
call fcn.00514e60
cmp edi, ebx
mov byte [esp + 0x31c], 2
jle 0x5169f6
mov ecx, dword [ebp + 0x290]
sub ecx, dword [ebp + 0x28c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x324], ecx
jb 0x51695c
call fcn.00526bf6
mov esi, dword [ebp + 0x28c]
add esi, dword [esp + 0x3c]
mov eax, 0x30c30c31
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x516986
call fcn.00526bf6
mov eax, ebx
imul eax, eax, 0xa8
add eax, dword [esi + 0xc]
je 0x5169d0
lea esi, [eax + 4]
jmp 0x5169d2
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x90]
push edx
push eax
lea ebx, [esi + 0x90]
push ebx
push esi
call fcn.00513e10
cmp dword [ebx + 4], 0
jne 0x5176bc
test eax, eax
je 0x5176bc
mov dword [esi + 0xa4], eax
jmp 0x5168da
xor esi, esi
cmp ebx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
sbb eax, eax
and eax, ebx
lea ecx, [eax + eax*4]
lea edi, [edx + ecx*8]
inc ebx
cmp ebx, dword [esp + 0x24]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
jl 0x516931
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x24]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, dword [esp + 0x6c]
push ecx
push eax
push ecx
mov eax, esp
mov dword [eax], 0x20
mov edx, dword [ebp]
mov edx, dword [edx + 8]
lea eax, [esp + 0x134]
mov dword [esp + 0x24], esp
push eax
mov ecx, ebp
call edx
cmp dword [esp + 0x38], ebx
mov eax, dword [eax]
seta byte [esp + 0x1f]
cmp eax, 4
je 0x51763d
cmp eax, 8
je 0x5177fc
push ebx
push ebx
push ecx
mov eax, esp
mov dword [eax], 9
mov eax, dword [ebp]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x138]
mov dword [esp + 0x24], esp
push ecx
mov ecx, ebp
call edx
cmp dword [eax], 4
jne 0x516a9c
push ebx
push ebx
push ecx
mov eax, esp
mov dword [eax], 8
mov eax, dword [ebp]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x148]
mov dword [esp + 0x24], esp
push ecx
mov ecx, ebp
mov byte [esp + 0x2f], 1
call edx
cmp dword [eax], 4
jne 0x516a9c
mov byte [esp + 0x1e], 1
push ebx
lea eax, [ebp + 0x41c]
push eax
push ecx
mov eax, esp
mov dword [eax], 6
mov edx, dword [ebp]
mov edx, dword [edx + 8]
lea eax, [esp + 0x11c]
push eax
mov ecx, ebp
call edx
push ebx
lea eax, [ebp + 0x420]
push eax
push ecx
mov eax, esp
mov dword [eax], 7
mov eax, dword [ebp]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x12c]
push ecx
mov ecx, ebp
call edx
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x8c]
push 0x46e398
push eax
mov byte [esp + 0x1f], 1
call fcn.004bfa00
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004cb7a0
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
lea eax, [edx + esi]
xor edi, edi
test byte [eax + 8], 6
jne 0x516b37
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x516b37
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x516b56
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], ebx
jne 0x516b4f
or eax, 4
push ebx
push eax
call fcn.0047abf0
cmp dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov edi, 0x10
jle 0x5170f4
mov dword [esp + 0x18], ebx
lea ecx, [ecx]
mov ecx, dword [ebp + 0x290]
sub ecx, dword [ebp + 0x28c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x324], eax
jb 0x516b9b
call fcn.00526bf6
mov esi, dword [ebp + 0x28c]
add esi, dword [esp + 0x3c]
mov eax, 0x30c30c31
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x20], ecx
jb 0x516bc7
call fcn.00526bf6
mov esi, dword [esi + 0xc]
add esi, dword [esp + 0x18]
cmp dword [ebp + 0x420], 0x4e4
jne 0x516be9
push 0x46e394
lea edx, [esp + 0x90]
push edx
jmp 0x516bf6
push 0x46dbac
lea eax, [esp + 0x90]
push eax
call fcn.004bfa00
mov ecx, dword [esi + 4]
or dword [esp + 0x48], ecx
add esp, 8
lea edx, [esp + 0x140]
push edx
mov ecx, esi
call fcn.0050e7e0
mov byte [esp + 0x31c], 3
cmp eax, ebx
je 0x516c25
add eax, 4
jmp 0x516c27
xor eax, eax
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004c0980
add esp, 8
mov byte [esp + 0x31c], 2
mov dword [esp + 0x140], 0x469080
cmp dword [esp + 0x15c], edi
jb 0x516c64
mov ecx, dword [esp + 0x148]
push ecx
call fcn.005265f5
add esp, 4
cmp byte [esp + 0x1f], 0
mov dword [esp + 0x15c], 0xf
mov dword [esp + 0x158], ebx
mov byte [esp + 0x148], 0
je 0x517067
mov edx, dword [esp + 0x54]
sub edx, dword [esp + 0x50]
mov edi, dword [esi + 0xa4]
sar edx, 2
cmp dword [esp + 0x20], edx
jb 0x516ca5
call fcn.00526bf6
cmp edi, ebx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x20]
mov dword [eax + ecx*4], edi
jge 0x516ccf
mov dl, byte [esp + 0x17]
mov byte [esp + 0x34], 0
mov byte [esp + 0x35], 0
mov byte [esp + 0x36], 0
mov byte [esp + 0x37], dl
mov dword [esp + 0x30], edi
cmp byte [esp + 0x1e], 0
je 0x517026
mov dword [esp + 0x2b4], 0xf
mov dword [esp + 0x2b0], ebx
mov byte [esp + 0x2a0], 0
mov dword [esp + 0x298], 0x469080
cmp edi, ebx
mov byte [esp + 0x31c], 4
jl 0x516d21
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x29c]
push ecx
push edi
push esi
mov ecx, ebp
call fcn.00512450
push 0xa
lea ecx, [esp + 0x90]
call fcn.004cb7a0
mov edx, dword [esp + 0x8c]
mov eax, dword [edx + 4]
xor esi, esi
test byte [esp + eax + 0x94], 6
jne 0x516d5f
mov eax, dword [esp + eax + 0xb4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x516d5f
mov esi, 4
mov ecx, dword [esp + 0x8c]
mov ecx, dword [ecx + 4]
lea ecx, [esp + ecx + 0x8c]
cmp esi, ebx
je 0x516d88
mov eax, dword [ecx + 8]
or eax, esi
cmp dword [ecx + 0x28], ebx
jne 0x516d81
or eax, 4
push ebx
push eax
call fcn.0047abf0
lea edx, [esp + 0x8c]
push 0x46e380
push edx
call fcn.004bfa00
add esp, 8
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x34]
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x68], ebx
mov dword [eax], 0xa
mov edx, dword [ebp]
mov edx, dword [edx + 8]
lea eax, [esp + 0x13c]
mov dword [esp + 0x38], esp
push eax
mov ecx, ebp
call edx
cmp dword [eax], 4
jne 0x516f6e
cmp edi, ebx
jl 0x516f5a
lea eax, [esp + 0x198]
push eax
lea ecx, [esp + 0x90]
call fcn.0047b910
mov esi, eax
lea ecx, [esp + 0x160]
push ecx
lea ecx, [esp + 0x90]
mov byte [esp + 0x320], 5
call fcn.0047b910
mov esi, dword [esi + 0x14]
push 0xffffffffffffffff
push esi
lea edx, [esp + 0x22c]
push edx
mov ecx, eax
mov byte [esp + 0x328], 6
call fcn.004bc300
mov esi, eax
test byte [esp + 0xd0], 1
mov byte [esp + 0x31c], 7
je 0x516e50
mov eax, dword [esp + 0xa0]
mov eax, dword [eax]
push eax
call fcn.005265f5
add esp, 4
mov ecx, dword [esp + 0xa0]
mov dword [ecx], ebx
mov edx, dword [esp + 0xb0]
mov dword [edx], ebx
mov eax, dword [esp + 0xc0]
mov dword [eax], ebx
mov ecx, dword [esp + 0xa4]
mov dword [ecx], ebx
mov edx, dword [esp + 0xb4]
mov dword [edx], ebx
mov eax, dword [esp + 0xc4]
mov dword [eax], ebx
and dword [esp + 0xd0], 0xfffffffe
mov dword [esp + 0xcc], ebx
mov eax, dword [esi + 0x14]
mov edi, 0x10
cmp dword [esi + 0x18], edi
jb 0x516ea7
mov esi, dword [esi + 4]
jmp 0x516eaa
add esi, 4
mov ecx, dword [esp + 0xd0]
push ecx
push eax
push esi
lea ecx, [esp + 0x9c]
call fcn.00476cd0
cmp dword [esp + 0x23c], edi
jb 0x516ed9
mov edx, dword [esp + 0x228]
push edx
call fcn.005265f5
add esp, 4
mov esi, 0xf
mov dword [esp + 0x23c], esi
mov dword [esp + 0x238], ebx
mov byte [esp + 0x228], 0
cmp dword [esp + 0x178], edi
jb 0x516f0d
mov eax, dword [esp + 0x164]
push eax
call fcn.005265f5
add esp, 4
mov dword [esp + 0x178], esi
mov dword [esp + 0x174], ebx
mov byte [esp + 0x164], 0
mov byte [esp + 0x31c], 4
cmp dword [esp + 0x1b0], edi
jb 0x516f44
mov ecx, dword [esp + 0x19c]
push ecx
call fcn.005265f5
add esp, 4
mov dword [esp + 0x1b0], esi
mov dword [esp + 0x1ac], ebx
mov byte [esp + 0x19c], 0
mov edx, dword [esp + 0x5c]
push edx
lea eax, [esp + 0x90]
push eax
call fcn.004bfa00
jmp 0x516f83
lea ecx, [esp + 0x29c]
push ecx
lea edx, [esp + 0x90]
push edx
call fcn.004c0980
add esp, 8
test byte [esp + 0x28], 1
mov dword [esp + 0x31c], 4
je 0x516fd1
and dword [esp + 0x28], 0xfffffffe
cmp dword [esp + 0x258], 0x10
jb 0x516fb7
mov eax, dword [esp + 0x244]
push eax
call fcn.005265f5
add esp, 4
mov dword [esp + 0x258], 0xf
mov dword [esp + 0x254], ebx
mov byte [esp + 0x244], 0
cmp byte [esp + 0x37], 0
jne 0x516fdd
mov byte [esp + 0x17], 0
cmp dword [esp + 0x2b4], 0x10
mov byte [esp + 0x31c], 2
mov dword [esp + 0x298], 0x469080
jb 0x51700a
mov ecx, dword [esp + 0x2a0]
push ecx
call fcn.005265f5
add esp, 4
mov dword [esp + 0x2b4], 0xf
mov dword [esp + 0x2b0], ebx
mov byte [esp + 0x2a0], 0
jmp 0x517062
mov ecx, esi
call fcn.0050e2d0
push 0x4697fc
push edi
push eax
lea edx, [esp + 0x98]
push 0x46e374
push edx
call fcn.004bfa00
add esp, 8
push eax
call fcn.004bfa00
add esp, 8
mov ecx, eax
call fcn.0047d890
push eax
call fcn.004bfa00
add esp, 8
mov edi, 0x10
push 0xa
lea ecx, [esp + 0x90]
call fcn.004cb7a0
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + 4]
xor esi, esi
test byte [esp + eax + 0x94], 6
jne 0x5170a5
mov eax, dword [esp + eax + 0xb4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x5170a5
mov esi, 4
mov ecx, dword [esp + 0x8c]
mov ecx, dword [ecx + 4]
lea ecx, [esp + ecx + 0x8c]
cmp esi, ebx
je 0x5170ce
mov eax, dword [ecx + 8]
or eax, esi
cmp dword [ecx + 0x28], ebx
jne 0x5170c7
or eax, 4
push ebx
push eax
call fcn.0047abf0
mov eax, dword [esp + 0x20]
add dword [esp + 0x18], 0xa8
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
jl 0x516b70
cmp byte [esp + 0x17], 0
je 0x517301
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
mov eax, esp
mov dword [esp + 0x6c], ebx
mov dword [eax], 0xb
mov edx, dword [ebp]
mov edx, dword [edx + 8]
lea eax, [esp + 0x120]
mov dword [esp + 0x38], esp
push eax
mov ecx, ebp
call edx
cmp dword [eax], 4
jne 0x517301
lea eax, [esp + 0x1d0]
push eax
lea ecx, [esp + 0x90]
call fcn.0047b910
mov esi, eax
lea ecx, [esp + 0x208]
push ecx
lea ecx, [esp + 0x90]
mov byte [esp + 0x320], 9
call fcn.0047b910
mov esi, dword [esi + 0x14]
push 0xffffffffffffffff
push esi
lea edx, [esp + 0x1f4]
push edx
mov ecx, eax
mov byte [esp + 0x328], 0xa
call fcn.004bc300
mov esi, eax
test byte [esp + 0xd0], 1
mov byte [esp + 0x31c], 0xb
je 0x51719f
mov eax, dword [esp + 0xa0]
mov eax, dword [eax]
push eax
call fcn.005265f5
add esp, 4
mov ecx, dword [esp + 0xa0]
mov dword [ecx], ebx
mov edx, dword [esp + 0xb0]
mov dword [edx], ebx
mov eax, dword [esp + 0xc0]
mov dword [eax], ebx
mov ecx, dword [esp + 0xa4]
mov dword [ecx], ebx
mov edx, dword [esp + 0xb4]
mov dword [edx], ebx
mov eax, dword [esp + 0xc4]
mov dword [eax], ebx
and dword [esp + 0xd0], 0xfffffffe
mov dword [esp + 0xcc], ebx
mov eax, dword [esi + 0x14]
cmp dword [esi + 0x18], edi
jb 0x5171f1
mov esi, dword [esi + 4]
jmp 0x5171f4
add esi, 4
mov ecx, dword [esp + 0xd0]
push ecx
push eax
push esi
lea ecx, [esp + 0x9c]
call fcn.00476cd0
cmp dword [esp + 0x204], edi
jb 0x517223
mov edx, dword [esp + 0x1f0]
push edx
call fcn.005265f5
add esp, 4
mov esi, 0xf
mov dword [esp + 0x204], esi
mov dword [esp + 0x200], ebx
mov byte [esp + 0x1f0], 0
cmp dword [esp + 0x220], edi
jb 0x517257
mov eax, dword [esp + 0x20c]
push eax
call fcn.005265f5
add esp, 4
mov dword [esp + 0x220], esi
mov dword [esp + 0x21c], ebx
mov byte [esp + 0x20c], 0
mov byte [esp + 0x31c], 2
cmp dword [esp + 0x1e8], edi
jb 0x51728e
mov ecx, dword [esp + 0x1d4]
push ecx
call fcn.005265f5
add esp, 4
mov edx, dword [esp + 0x60]
push edx
lea eax, [esp + 0x90]
push eax
mov dword [esp + 0x1f0], esi
mov dword [esp + 0x1ec], ebx
mov byte [esp + 0x1dc], 0
call fcn.004bfa00
add esp, 8
test byte [esp + 0x28], 2
mov dword [esp + 0x31c], 2
je 0x517306
and dword [esp + 0x28], 0xfffffffd
cmp dword [esp + 0x274], edi
jb 0x5172e9
mov ecx, dword [esp + 0x260]
push ecx
call fcn.005265f5
add esp, 4
mov dword [esp + 0x274], esi
mov dword [esp + 0x270], ebx
mov byte [esp + 0x260], 0
jmp 0x517306
mov esi, 0xf
lea edx, [esp + 0x17c]
push edx
lea ecx, [esp + 0x90]
call fcn.0047b910
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x288]
mov byte [esp + 0x328], 0xd
mov dword [esp + 0x2a0], esi
mov dword [esp + 0x29c], ebx
mov byte [esp + 0x28c], 0
call fcn.004787f0
mov dword [esp + 0x278], 0x469080
mov byte [esp + 0x31c], 0xf
cmp dword [esp + 0x194], edi
jb 0x517374
mov eax, dword [esp + 0x180]
push eax
call fcn.005265f5
add esp, 4
mov dword [esp + 0x194], esi
mov dword [esp + 0x190], ebx
mov byte [esp + 0x180], 0
cmp dword [esp + 0x294], edi
jb 0x5173a0
mov ecx, dword [esp + 0x280]
mov dword [esp + 0x18], ecx
jmp 0x5173ab
lea edx, [esp + 0x280]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
push ebx
push eax
push ecx
mov eax, esp
mov dword [eax], 0x21
mov edx, dword [ebp]
mov edx, dword [edx + 8]
lea eax, [esp + 0x144]
mov dword [esp + 0x38], esp
push eax
mov ecx, ebp
call edx
mov eax, dword [eax]
cmp eax, 4
jne 0x5173e3
cmp dword [esp + 0x294], edi
jmp 0x517620
cmp eax, 8
je 0x517797
push 0
lea ecx, [esp + 0x68]
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x70], 0x46e354
mov dword [eax], 4
mov edx, dword [ebp]
mov edx, dword [edx + 8]
lea eax, [esp + 0x118]
mov dword [esp + 0x38], esp
push eax
mov ecx, ebp
call edx
mov esi, dword [esp + 0x38]
push 0
push esi
push ecx
mov eax, esp
mov dword [eax], 2
mov eax, dword [ebp]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x128]
mov dword [esp + 0x38], esp
push ecx
mov ecx, ebp
call edx
cmp esi, dword [ebp + 0x424]
mov eax, dword [eax]
setb bl
cmp eax, 4
je 0x517459
cmp eax, 8
jne 0x51745b
xor bl, bl
jmp 0x51745b
mov bl, 1
xor al, al
cmp byte [esp + 0x328], al
je 0x517493
test bl, bl
je 0x517493
push 0
push 0
push ecx
mov eax, esp
mov dword [eax], 3
mov eax, dword [ebp]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x94]
mov dword [esp + 0x38], esp
push ecx
mov ecx, ebp
call edx
cmp dword [eax], 4
sete al
xor ecx, ecx
mov edi, 0xf
mov edx, 0x469080
mov dword [esp + 0x2e8], edi
mov dword [esp + 0x2e4], ecx
mov byte [esp + 0x2d4], cl
mov dword [esp + 0x2cc], edx
mov dword [esp + 0x308], edi
mov dword [esp + 0x304], ecx
mov byte [esp + 0x2f4], cl
mov dword [esp + 0x2ec], edx
mov esi, dword [esp + 0x324]
mov byte [esp + 0x31c], 0x11
mov dword [esp + 0x2b8], esi
mov dword [esp + 0x2bc], 1
mov dword [esp + 0x2c0], 4
test bl, bl
je 0x517523
mov ebx, dword [esp + 0x18]
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x8e
add eax, 0x22
mov dword [esp + 0x2bc], eax
jmp 0x517591
lea ecx, [esp + 0x8c]
push 0x46e32c
push ecx
call fcn.004bfa00
add esp, 8
lea edx, [esp + 0x1b4]
push edx
lea ecx, [esp + 0x90]
call fcn.0047b910
mov ecx, 0x10
cmp dword [eax + 0x18], ecx
jb 0x51755b
mov ebx, dword [eax + 4]
jmp 0x51755e
lea ebx, [eax + 4]
cmp dword [esp + 0x1cc], ecx
jb 0x517577
mov eax, dword [esp + 0x1b8]
push eax
call fcn.005265f5
add esp, 4
mov dword [esp + 0x1cc], edi
mov dword [esp + 0x1c8], 0
mov byte [esp + 0x1b8], 0
lea ecx, [esp + 0x44]
push ecx
push esi
mov ecx, ebp
call fcn.00514ca0
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c4], eax
mov eax, dword [esp + 0x64]
push eax
lea ecx, [esp + 0x2d0]
mov dword [esp + 0x2cc], edx
call fcn.004b5f20
push ebx
lea ecx, [esp + 0x2f0]
call fcn.004b5f20
mov edx, dword [ebp]
mov edx, dword [edx + 4]
push 0
lea eax, [esp + 0x2bc]
push eax
push 0
lea ecx, [esp + 0x90]
push ecx
mov ecx, ebp
mov byte [esp + 0x31c], 1
call edx
mov eax, dword [esp + 0x84]
cmp eax, 0x20
jne 0x5177b5
lea ecx, [esp + 0x2b8]
mov byte [esp + 0x31c], 0xf
call fcn.00499f70
cmp dword [esp + 0x294], 0x10
mov dword [esp + 0x278], 0x469080
jb 0x51763d
mov eax, dword [esp + 0x280]
push eax
call fcn.005265f5
add esp, 4
mov eax, 1
add dword [esp + 0x38], eax
cmp byte [esp + 0x78], 0
je 0x51767d
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x51767d
cmp dword [esp + 0x7c], eax
jne 0x517674
mov eax, dword [esp + 0x70]
lea ecx, [eax + eax*4]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push 0
push esi
call fcn.00526600
add esp, 0xc
push esi
call fcn.00526d49
add esp, 4
lea ecx, [esp + 0xd8]
mov byte [esp + 0x31c], 0
call fcn.004774d0
lea edx, [esp + 0xd8]
push edx
mov dword [esp + 0xdc], 0x46923c
call fcn.00526077
mov ebx, dword [esp + 0x328]
mov edi, dword [esp + 0x28]
add esp, 4
jmp 0x5167a0
mov eax, dword [ebp + 0x2e8]
sub eax, dword [ebp + 0x2e4]
mov edi, dword [esp + 0x324]
sar eax, 2
cmp edi, eax
jb 0x5176db
call fcn.00526bf6
mov ecx, dword [ebp + 0x2e4]
mov edx, dword [esp + 0x20]
mov dword [ecx + edi*4], edx
xor edi, edi
push edi
push esi
push ecx
mov eax, esp
mov dword [eax], 0x24
mov eax, dword [ebp]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x130]
mov dword [esp + 0x94], esp
push ecx
mov ecx, ebp
call edx
cmp dword [eax], edi
jne 0x51777c
push edi
lea eax, [ebp + 0x41c]
push eax
push ecx
mov eax, esp
mov dword [eax], 6
mov edx, dword [ebp]
mov edx, dword [edx + 8]
lea eax, [esp + 0x140]
push eax
mov ecx, ebp
call edx
push edi
lea eax, [ebp + 0x420]
push eax
push ecx
mov eax, esp
mov dword [eax], 7
mov edx, dword [ebp]
mov edx, dword [edx + 8]
lea eax, [esp + 0x8c]
push eax
mov ecx, ebp
call edx
push edi
push esi
push ecx
mov eax, esp
mov dword [eax], 0x25
mov eax, dword [ebp]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x124]
mov dword [esp + 0x8c], esp
push ecx
mov ecx, ebp
call edx
mov eax, dword [esp + 0x50]
cmp eax, edi
je 0x51778d
push eax
call fcn.005265f5
add esp, 4
mov eax, dword [esp + 0x44]
push eax
jmp 0x51787a
mov dword [esp + 0x278], 0x469080
cmp dword [esp + 0x294], edi
jb 0x5177fc
mov ecx, dword [esp + 0x280]
push ecx
jmp 0x5177f4
cmp eax, 0x80
jne 0x5177c3
or dword [ebp + 0x78], 0x200
lea ecx, [esp + 0x2b8]
mov byte [esp + 0x31c], 0xf
call fcn.00499f70
cmp dword [esp + 0x294], 0x10
mov dword [esp + 0x278], 0x469080
jb 0x5177fc
mov edx, dword [esp + 0x280]
push edx
call fcn.005265f5
add esp, 4
xor edi, edi
cmp byte [esp + 0x78], 0
je 0x517835
mov esi, dword [esp + 0x6c]
cmp esi, edi
je 0x517835
cmp dword [esp + 0x7c], 1
jne 0x51782c
mov eax, dword [esp + 0x70]
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push edi
push esi
call fcn.00526600
add esp, 0xc
push esi
call fcn.00526d49
add esp, 4
lea ecx, [esp + 0xd8]
mov byte [esp + 0x31c], 0
call fcn.004774d0
lea ecx, [esp + 0xd8]
push ecx
mov dword [esp + 0xdc], 0x46923c
call fcn.00526077
mov eax, dword [esp + 0x54]
add esp, 4
cmp eax, edi
je 0x517875
push eax
call fcn.005265f5
add esp, 4
mov edx, dword [esp + 0x44]
push edx
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
call fcn.005265f5
add esp, 4
mov ecx, dword [esp + 0x314]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2fc]
xor ecx, esp
call fcn.00526a8a
add esp, 0x30c
ret 8