Function at 0x520510
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x2f4]
sub esp, 0x2f4
push 0xffffffffffffffff
push 0x868612
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x8ce6f4]
xor eax, ebp
mov dword [ebp + 0x2f0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x3c], edi
xor esi, esi
mov dword [ebp - 4], esi
call fcn.007c9a2f
mov eax, dword [eax + 4]
add eax, 0x1f0
mov dword [ebp - 0x24], eax
cmp dword [edi + 0x2e8], esi
je 0x52058e
mov ecx, dword [ebp + 0x2fc]
mov dword [ebp - 4], 0xffffffff
cmp ecx, esi
je 0x520587
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
xor al, al
jmp 0x5219b9
mov eax, dword [ebp + 0x2fc]
push esi
push 0x8b7930
push 0x8b78b0
push esi
push eax
call fcn.008042d3
mov ecx, dword [ebp + 0x2fc]
push esi
push 0x8b78ec
push 0x8b78b0
mov ebx, eax
push esi
push ecx
mov dword [ebp - 0x38], ebx
call fcn.008042d3
mov edx, dword [ebp + 0x2fc]
push esi
push 0x8b78cc
push 0x8b78b0
push esi
push edx
mov dword [ebp - 0x34], eax
call fcn.008042d3
add esp, 0x3c
mov dword [ebp - 0x28], eax
cmp ebx, esi
jne 0x5205f5
cmp dword [ebp - 0x34], esi
jne 0x5205f5
cmp eax, esi
je 0x52056e
call fcn.006121a0
push 0x402a88
lea ecx, [ebp - 0x1c]
call fcn.004a8f10
mov byte [ebp - 4], 1
cmp ebx, esi
je 0x520851
cmp dword [ebx + 0x28], esi
jne 0x52065b
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52063b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x2fc]
mov dword [ebp - 4], 0xffffffff
cmp ecx, esi
je 0x520654
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
xor al, al
jmp 0x5219b9
mov eax, dword [ebx + 0x20]
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x520673
push 0x80004005
call fcn.004a8210
mov eax, dword [eax + 8]
sub eax, 0x10
push eax
call fcn.004a9b50
lea ebx, [eax + 0x10]
add esp, 4
mov dword [ebp + 0x2ec], ebx
mov byte [ebp - 4], 2
cmp dword [ebx - 0xc], esi
jl 0x520831
push 0x40e35c
push ebx
call fcn.0080292f
add esp, 8
cmp eax, esi
je 0x520831
sub eax, ebx
sar eax, 1
cmp eax, esi
jle 0x520831
add eax, 2
push eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp + 0x2ec]
call fcn.004ac570
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
mov dword [ebp + 0x2c8], ecx
mov dword [ebp + 0x2cc], ecx
mov dword [ebp + 0x2d0], ecx
mov dword [ebp + 0x2d4], ecx
mov dword [ebp + 0x2d8], ecx
mov dword [ebp + 0x2dc], 0xa
mov byte [ebp - 4], 4
cmp eax, 2
je 0x520740
cmp eax, 5
jne 0x52080d
cmp dword [esi - 0xc], ecx
jge 0x520722
push 0x80070057
call fcn.004a8210
movzx eax, word [esi]
lea edx, [ebp + 0x2c8]
push edx
push eax
call fcn.005c6c30
add esp, 8
cmp eax, 1
je 0x52080d
mov edi, edi
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x520806
call fcn.007cff5d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x520669
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push ebx
lea ecx, [ebp - 0x14]
push 0x8154
push ecx
mov byte [ebp - 4], 5
call fcn.004b1ce0
mov esi, dword [ebp - 0x14]
add esp, 0xc
push 0
push 5
push esi
call fcn.007d3a8e
mov dword [ebp - 0x14], eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5207bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
cmp eax, 4
je 0x520740
cmp eax, 1
je 0x52080d
lea ecx, [ebp + 0x2c8]
call fcn.004afe70
lea ecx, [ebp - 0x18]
call fcn.004a8c20
lea ecx, [ebp + 0x2ec]
call fcn.004a8c20
lea ecx, [ebp - 0x1c]
call fcn.004a8c20
lea ecx, [ebp + 0x2fc]
call fcn.005408a0
xor al, al
jmp 0x5219b9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp + 0x2ec]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004aa540
lea ecx, [ebp + 0x2c8]
call fcn.004afe70
lea ecx, [ebp - 0x18]
call fcn.004a8c20
xor esi, esi
add ebx, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x520851
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [ebp - 0x24]
cmp byte [ecx + 0x330], 0
je 0x520d23
call reloc.SHLWAPI.dll_PathStripPathW
test al, al
je 0x520d23
mov eax, dword [ebp - 0x34]
cmp eax, esi
je 0x52097d
add eax, 0x20
push eax
lea ecx, [ebp - 0x1c]
call fcn.004aa540
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004a8f10
lea edx, [ebp + 0x2ec]
push edx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.004d44d0
lea eax, [ebp + 0x2ec]
push 0x402a88
push eax
mov byte [ebp - 4], 7
call fcn.004afd20
add esp, 8
test al, al
je 0x520920
push 0xa
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004ac4f0
push 0x40e344
push eax
call fcn.004afd20
add esp, 8
lea ecx, [ebp - 0x14]
mov bl, al
call fcn.004a8c20
test bl, bl
je 0x520905
push 0x40e328
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.004af3d0
add esp, 0xc
mov byte [ebp - 4], 8
jmp 0x520959
push 0x40e2f8
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.004af3d0
add esp, 0xc
mov byte [ebp - 4], 9
jmp 0x520959
lea eax, [ebp + 0x2ec]
push 0x40e2ec
push eax
call fcn.004afd20
add esp, 8
test al, al
je 0x52096a
lea ecx, [ebp - 0x18]
call fcn.004f5ad0
push 0x40e2d0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.004af3d0
add esp, 0xc
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x1c]
call fcn.004aa540
lea ecx, [ebp - 0x14]
call fcn.004a8c20
lea ecx, [ebp + 0x2ec]
call fcn.004a8c20
lea ecx, [ebp - 0x18]
jmp 0x520a98
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004a8f10
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
call fcn.004d44d0
lea edx, [ebp - 0x14]
push 0x40e2c4
push edx
mov byte [ebp - 4], 0xc
call fcn.004afd20
add esp, 8
test al, al
je 0x520a8d
lea ecx, [ebp + 0x288]
call fcn.005d2f50
mov dword [ebp + 0x2c8], esi
mov dword [ebp + 0x2cc], esi
mov dword [ebp + 0x2d0], esi
mov dword [ebp + 0x2d4], esi
mov dword [ebp + 0x2d8], esi
mov dword [ebp + 0x2dc], 0xa
lea ecx, [ebp + 0x2ac]
call fcn.005345e0
lea eax, [ebp + 0x2c8]
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp + 0x2e8]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov ebx, esp
push eax
mov byte [ebp - 4], 0xf
call fcn.004a9b50
add eax, 0x10
add esp, 4
lea ecx, [ebp + 0x288]
mov dword [ebx], eax
call fcn.005d30c0
cmp eax, esi
jl 0x520a68
mov ecx, dword [ebp + 0x2c8]
xor eax, eax
cmp ecx, esi
setne al
cmp eax, esi
jne 0x520a4a
push 0x80004005
call fcn.004a8210
lea eax, [ecx + 8]
push eax
lea ecx, [ebp + 0x2ac]
call fcn.004f7de0
lea edx, [ebp + 0x2ac]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004aa540
lea ecx, [ebp + 0x2ac]
call fcn.004a8c20
lea ecx, [ebp + 0x2c8]
call fcn.004afe70
lea ecx, [ebp + 0x288]
mov byte [ebp - 4], 0xc
call fcn.005d2f70
lea ecx, [ebp - 0x14]
call fcn.004a8c20
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004a8c20
fldz
lea ecx, [ebp - 0x20]
fstp qword [edi + 0x350]
call fcn.004eb5d0
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x2c4]
mov byte [ebp - 4], 0x10
call fcn.004f8450
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x20], esi
je 0x520ad5
cmp dword [0x8d2cf0], esi
jne 0x520adc
xor ebx, ebx
lea esi, [ebx + 8]
jmp 0x520b02
mov eax, dword [ebp + 0x2c4]
mov esi, 8
cmp dword [ebp + 0x2d8], esi
jae 0x520af5
lea eax, [ebp + 0x2c4]
mov ecx, dword [ebp - 0x20]
push eax
push ecx
call dword [0x8d2cdc]
mov ebx, eax
lea ecx, [ebp + 0x2c4]
mov byte [ebp - 4], 0x10
call fcn.004f4a80
test ebx, ebx
je 0x520d06
push 0x40e2b0
lea ecx, [ebp + 0x2a8]
call fcn.004f8450
push 0
push 1
lea edx, [ebp + 0x2a8]
push edx
push 0
push 1
lea eax, [ebp + 0x26c]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x12
call fcn.004f8c40
mov byte [ebp - 4], 0x13
cmp dword [eax + 0x14], esi
jb 0x520b56
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0x2ec]
call fcn.004a8f10
lea ecx, [ebp + 0x26c]
call fcn.004f4a80
lea ecx, [ebp + 0x2a8]
mov byte [ebp - 4], 0x16
call fcn.004f4a80
push 0x40e29c
lea ecx, [ebp + 0x250]
call fcn.004f8450
push 0
push 1
lea ecx, [ebp + 0x250]
push ecx
push 0
push 1
lea edx, [ebp + 0x28c]
push edx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x17
call fcn.004f8c40
mov byte [ebp - 4], 0x18
cmp dword [eax + 0x14], esi
jb 0x520bb9
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x14]
call fcn.004a8f10
lea ecx, [ebp + 0x28c]
call fcn.004f4a80
lea ecx, [ebp + 0x250]
mov byte [ebp - 4], 0x1b
call fcn.004f4a80
push 0x40e288
lea ecx, [ebp + 0x2a8]
call fcn.004f8450
push 0
push 1
lea eax, [ebp + 0x2a8]
push eax
push 0
push 1
lea ecx, [ebp + 0x26c]
push ecx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x1c
call fcn.004f8c40
mov byte [ebp - 4], 0x1d
cmp dword [eax + 0x14], esi
jb 0x520c19
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x18]
call fcn.004a8f10
lea ecx, [ebp + 0x26c]
call fcn.004f4a80
lea ecx, [ebp + 0x2a8]
mov byte [ebp - 4], 0x20
call fcn.004f4a80
lea edx, [ebp + 0x2ec]
push 0x40e278
push edx
call fcn.004afd20
add esp, 8
test al, al
je 0x520ccd
lea eax, [ebp - 0x18]
push 0x40e25c
push eax
call fcn.004afd20
add esp, 8
test al, al
jne 0x520cbd
lea ecx, [ebp - 0x14]
push 0x40e244
push ecx
call fcn.004afd20
add esp, 8
test al, al
je 0x520ccd
lea edx, [ebp - 0x18]
push 0x40e23c
push edx
call fcn.004afd20
add esp, 8
test al, al
jne 0x520cbd
lea eax, [ebp - 0x18]
push 0x40e234
push eax
call fcn.004afd20
add esp, 8
test al, al
jne 0x520cbd
lea ecx, [ebp - 0x18]
push 0x40e25c
push ecx
call fcn.004afd20
add esp, 8
test al, al
je 0x520ccd
push 0x40e224
lea ecx, [ebp + 0x2ec]
call fcn.004a8ed0
mov edx, dword [ebp + 0x2ec]
push 0
push edx
call fcn.008073a9
fstp qword [edi + 0x350]
add esp, 8
mov ecx, edi
call fcn.004f50e0
lea ecx, [ebp - 0x18]
call fcn.004a8c20
lea ecx, [ebp - 0x14]
call fcn.004a8c20
lea ecx, [ebp + 0x2ec]
call fcn.004a8c20
cmp dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
je 0x520d23
cmp dword [0x8d2cf0], 0
je 0x520d23
mov eax, dword [ebp - 0x20]
push eax
call dword [0x8d2ce4]
mov ebx, 1
push ebx
push 0x403a48
push 0x50000001
push edi
mov dword [edi + 0x2e8], ebx
call fcn.004ecfc0
mov ecx, dword [edi + 0x20]
add esp, 0x10
xor esi, esi
push esi
push esi
push 0x36a
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.007cff5d
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x520d6f
push 0x80004005
call fcn.004a8210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
mov ecx, edi
mov byte [ebp - 4], 0x21
mov byte [edi + 0x29a], 0
call fcn.007d4ee7
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
cmp byte [edi + 0x370], 0
mov byte [ebp - 4], 0x25
je 0x520dbb
push 0x88ca18
lea ecx, [ebp - 0x54]
push ecx
mov dword [ebp - 0x54], 0x8155
call fcn.008039e9
mov edx, dword [ebp + 0x2fc]
push edx
mov ecx, edi
call fcn.00511c60
cmp byte [edi + 0x370], 0
je 0x520de7
push 0x88ca18
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 0x8155
call fcn.008039e9
mov ecx, edi
call fcn.004f1f10
cmp byte [edi + 0x370], 0
je 0x520e0c
push 0x88ca18
lea ecx, [ebp - 0x4c]
push ecx
mov dword [ebp - 0x4c], 0x8155
call fcn.008039e9
mov eax, dword [ebp - 0x38]
cmp eax, esi
je 0x520e1d
push eax
mov ecx, edi
call fcn.00512690
jmp 0x520e6a
mov eax, dword [ebp - 0x34]
cmp eax, esi
je 0x520e2e
push eax
mov ecx, edi
call fcn.00503820
jmp 0x520e6a
mov eax, dword [ebp - 0x28]
cmp eax, esi
je 0x52164a
mov edx, dword [ebp - 0x24]
mov ecx, edi
cmp dword [edx + 0x7c8], ebx
jne 0x520e64
call fcn.00512fc0
cmp eax, esi
jge 0x520e6a
push 0x88ca18
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0xa1a5
call fcn.008039e9
push eax
call fcn.004f7750
mov eax, dword [edi + 0x180]
lea esi, [edi + 0x180]
test eax, eax
je 0x520e88
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi], 0
mov eax, dword [edi + 0x17c]
lea ebx, [edi + 0x17c]
test eax, eax
je 0x520ea6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebx], 0
mov eax, dword [edi + 0x114]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x6c]
push 1
push ebx
push 0x40e204
push eax
call edx
mov eax, dword [edi + 0x114]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x6c]
push 1
push esi
push 0x40e1f4
push eax
call edx
mov eax, dword [edi + 0x114]
mov ecx, dword [eax]
push 1
lea edx, [edi + 0x4838]
push edx
push 0x407bd0
push eax
mov eax, dword [ecx + 0x6c]
call eax
mov eax, dword [edi + 0x114]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x14]
push edx
push 0x407be0
push eax
mov eax, dword [ecx + 0x6c]
call eax
mov eax, dword [edi + 0x114]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x2c]
push edx
push 0x4310a0
push eax
mov eax, dword [ecx + 0x6c]
call eax
push ebx
lea ecx, [ebp - 0x30]
call fcn.004f4b50
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0xa2], 0
jne 0x520f3e
cmp byte [eax + 0x98], 0
je 0x520fa4
mov ebx, dword [ebp - 0x14]
xor esi, esi
cmp ebx, esi
je 0x520f64
mov ecx, eax
call reloc.SHLWAPI.dll_PathStripPathW
mov ecx, dword [edi + 0x4828]
push eax
push ebx
push ecx
lea ecx, [edi + 0x4848]
call fcn.0059caf0
jmp 0x520fa6
mov ebx, dword [ebp - 0x2c]
cmp ebx, esi
je 0x520f88
mov ecx, eax
call reloc.SHLWAPI.dll_PathStripPathW
mov edx, dword [edi + 0x4828]
lea ecx, [edi + 0x4848]
push eax
push ebx
push edx
call fcn.0059cb70
jmp 0x520fa6
mov eax, dword [ebp - 0x30]
cmp eax, esi
je 0x520fa6
push eax
mov eax, dword [edi + 0x4828]
push eax
lea ecx, [edi + 0x4848]
call fcn.0059cbf0
jmp 0x520fa6
xor esi, esi
mov ecx, edi
call fcn.004f21c0
mov eax, dword [edi + 0x114]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x6c]
push 1
lea ebx, [edi + 0x483c]
push ebx
push 0x40e214
push eax
call edx
mov eax, dword [edi + 0x114]
mov ecx, dword [eax]
push 1
lea edx, [edi + 0x4840]
push edx
push 0x431090
push eax
mov eax, dword [ecx + 0x6c]
call eax
cmp dword [ebx], esi
je 0x521026
mov edx, dword [edi + 0x4828]
mov eax, dword [edx + 0x20]
lea ecx, [ebp + 0x2e0]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [edi + 0x4828]
mov eax, dword [ebx]
mov edx, dword [edx + 0x20]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov ebx, dword [ebx]
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x14]
lea edx, [ebp + 0x2e0]
push edx
push esi
push ebx
call eax
xor ecx, ecx
mov dword [ebp + 0x2ec], ecx
mov eax, dword [edi + 0x114]
mov byte [ebp - 4], 0x26
cmp eax, esi
je 0x5210c2
mov ecx, dword [eax]
lea edx, [ebp + 0x2ec]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp eax, esi
jl 0x5210bc
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0x27
lea ebx, [ebx]
mov eax, dword [ebp + 0x2ec]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x18]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, esi
jne 0x5210a9
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [edi + 0x4844]
call fcn.004f4ba0
test eax, eax
je 0x5210f0
mov ebx, dword [ebp - 0x24]
mov eax, dword [edi + 0x4844]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
xor ecx, ecx
cmp byte [ebx + 0x285], cl
setne cl
push ecx
push eax
call edx
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x26
cmp eax, esi
je 0x5210bc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp + 0x2ec]
mov byte [ebp - 4], 0x25
cmp ecx, esi
je 0x5210d2
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
cmp byte [edi + 0x370], 0
je 0x52110b
push 0x88ca18
lea edx, [ebp - 0x5c]
push edx
mov dword [ebp - 0x5c], 0x8155
call fcn.008039e9
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x521060
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x18], esi
jmp 0x521060
mov ecx, edi
call fcn.00513040
cmp byte [edi + 0x370], 0
je 0x521130
push 0x88ca18
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x64], 0x8155
call fcn.008039e9
mov ecx, edi
call fcn.0051d700
cmp byte [edi + 0x370], 0
je 0x521155
push 0x88ca18
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 0x48], 0x8155
call fcn.008039e9
mov ecx, edi
call fcn.004efe60
cmp byte [edi + 0x370], 0
je 0x52117a
push 0x88ca18
lea edx, [ebp - 0x60]
push edx
mov dword [ebp - 0x60], 0x8155
call fcn.008039e9
cmp dword [edi + 0x17c], esi
je 0x521416
cmp byte [edi + 0x2ec], 0
je 0x52119c
cmp byte [edi + 0x26d], 0
je 0x521416
mov ebx, dword [ebp - 0x24]
cmp byte [ebx + 0xe39], 0
je 0x5211b3
lea ecx, [edi + 0x19c]
call fcn.004ed5a0
cmp byte [ebx + 0xe38], 0
je 0x521395
mov dword [ebp + 0x2c8], esi
mov dword [ebp + 0x2cc], esi
mov dword [ebp + 0x2d0], esi
mov dword [ebp + 0x2d4], esi
mov dword [ebp + 0x2d8], esi
mov dword [ebp + 0x2dc], 0xa
mov bl, 0x28
mov byte [ebp - 4], bl
xor esi, esi
cmp dword [edi + 0x1a4], esi
je 0x521232
lea eax, [ebp + 0x2ec]
push eax
lea ecx, [edi + 0x19c]
call fcn.004d3b30
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0x2c8]
mov byte [ebp - 4], 0x29
call fcn.004c4110
mov eax, dword [ebp + 0x2ec]
mov byte [ebp - 4], bl
cmp eax, esi
je 0x5211ed
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x5211ed
mov eax, dword [ebp + 0x2fc]
mov ecx, dword [eax + 8]
mov dword [ebp + 0x2ec], ecx
cmp dword [ebp + 0x2ec], esi
je 0x521283
mov ecx, dword [ebp + 0x2fc]
push esi
lea edx, [ebp + 0x2ec]
push edx
add ecx, 8
call fcn.005ff9f0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [ebp - 0x18], esp
mov esi, esp
push eax
call fcn.004a9b50
add eax, 0x10
add esp, 4
mov ecx, edi
mov dword [esi], eax
call fcn.00514a20
xor esi, esi
jmp 0x521241
mov dword [ebp + 0x2ac], esi
mov dword [ebp + 0x2b0], esi
mov dword [ebp + 0x2b4], esi
mov dword [ebp + 0x2b8], esi
mov dword [ebp + 0x2bc], esi
mov dword [ebp + 0x2c0], 0xa
mov byte [ebp - 4], 0x2a
mov bl, 0x2b
cmp dword [ebp + 0x2d0], 0
je 0x5212f7
lea eax, [ebp + 0x2ec]
push eax
lea ecx, [ebp + 0x2c8]
call fcn.004d3b30
push eax
lea ecx, [ebp + 0x2ac]
push ecx
mov byte [ebp - 4], bl
call fcn.00509050
mov eax, dword [ebp + 0x2ec]
add esp, 8
mov byte [ebp - 4], 0x2a
test eax, eax
je 0x5212b1
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x5212b1
mov bl, 0x2c
cmp dword [ebp + 0x2b4], 0
je 0x52133d
lea ecx, [ebp + 0x2ec]
push ecx
lea ecx, [ebp + 0x2ac]
call fcn.004d3b30
mov eax, dword [eax]
push eax
lea ecx, [edi + 0x19c]
mov byte [ebp - 4], bl
call fcn.004c4110
mov eax, dword [ebp + 0x2ec]
mov byte [ebp - 4], 0x2a
test eax, eax
je 0x5212f9
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x5212f9
lea ecx, [ebp + 0x2ac]
call fcn.004ed5a0
lea ecx, [ebp + 0x2c8]
mov byte [ebp - 4], 0x25
call fcn.004ed5a0
xor esi, esi
call fcn.007c9a2f
mov eax, dword [eax + 4]
cmp byte [eax + 0x107a], 0
je 0x521416
cmp dword [edi + 0x1a4], esi
jbe 0x521416
mov eax, dword [edi + 0x19c]
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x5213e4
push 0x80004005
call fcn.004a8210
mov ecx, dword [ebp + 0x2fc]
mov edx, dword [ecx + 8]
mov dword [ebp + 0x2ec], edx
cmp dword [ebp + 0x2ec], esi
je 0x521359
mov ecx, dword [ebp + 0x2fc]
push esi
lea eax, [ebp + 0x2ec]
push eax
add ecx, 8
call fcn.005ff9f0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [ebp - 0x18], esp
mov ebx, esp
push eax
call fcn.004a9b50
add eax, 0x10
add esp, 4
mov ecx, edi
mov dword [ebx], eax
call fcn.00514a20
jmp 0x5213a4
mov ebx, dword [eax + 8]
mov dword [ebp + 0x2ec], ebx
cmp ebx, esi
je 0x5213f9
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
push ebx
call edx
push esi
push ebx
mov ecx, edi
mov byte [ebp - 4], 0x2d
call fcn.004f7fd0
mov byte [ebp - 4], 0x25
cmp ebx, esi
je 0x521416
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
cmp byte [edi + 0x370], 0
je 0x521434
push 0x88ca18
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 0x58], 0x8155
call fcn.008039e9
mov eax, dword [ebp + 0x2fc]
mov eax, dword [eax + 4]
push ecx
sub eax, 0x10
mov dword [ebp + 0x2ec], esp
mov ebx, esp
push eax
call fcn.004a9b50
add eax, 0x10
add esp, 4
mov ecx, edi
mov dword [ebx], eax
call fcn.00504e30
mov ecx, dword [ebp - 0x24]
cmp byte [ecx + 0xf0b], 0
je 0x52147f
mov edx, dword [ebp + 0x2fc]
mov eax, dword [edx + 4]
push eax
lea ecx, [edi + 0x3b88]
call fcn.004c8500
cmp dword [ebp - 0x38], esi
je 0x52148b
mov byte [edi + 0x49e8], 1
call fcn.007c9a2f
mov ebx, dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [ebx + 0x30]
jne 0x5214ad
mov ecx, edi
call fcn.0051fe00
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x5214c5
mov eax, dword [edi + 0x20]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0x3b3
push 0x111
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x5214d0
mov eax, dword [edi + 0x2e8]
cmp eax, 2
je 0x5214e6
cmp eax, 3
je 0x5214e6
push 0x32
call ebx
jmp 0x5214d0
mov ecx, edi
call fcn.005051a0
mov ecx, dword [edi + 0x20]
push 0
push 0x378
push 0x111
push ecx
mov ebx, eax
call esi
mov byte [0x8d2d00], 1
call fcn.007c9a2f
mov eax, dword [eax + 4]
test byte [eax + 0x1fc], 1
jne 0x52153e
call fcn.007c9a2f
mov eax, dword [eax + 4]
cmp dword [eax + 0x440], 0
jle 0x52153e
mov edx, dword [edi + 0x20]
push 0
push 0x377
push 0x111
push edx
call esi
jmp 0x521550
push 1
mov ecx, edi
call fcn.0050cc80
push 2
mov ecx, edi
call fcn.0050cc80
test ebx, ebx
je 0x521562
add ebx, 0x898
push ebx
mov ecx, edi
call fcn.00510d60
call fcn.007c9a2f
mov eax, dword [eax + 4]
and dword [eax + 0x1fc], 0xfffffffe
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x5215ae
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
test eax, eax
jl 0x521608
jg 0x521590
test ecx, ecx
je 0x521608
push 0
push 0x2710
push eax
push ecx
call fcn.00803a40
push eax
mov eax, dword [edi + 0x20]
push 1
push 0x8004
push eax
call esi
jmp 0x521608
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x5215d4
mov ebx, dword [eax + 0x24]
test ebx, ebx
je 0x521608
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
push ebx
call edx
mov eax, dword [edi + 0x20]
push ebx
push 2
push 0x8004
push eax
call esi
jmp 0x521608
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x521608
mov ecx, dword [esi + 0x28]
push ecx
lea ecx, [edi + 0x1264]
call fcn.005433b0
mov edx, dword [esi + 0x2c]
push edx
lea ecx, [edi + 0x1264]
call fcn.00540480
mov eax, dword [esi + 0x30]
push eax
lea ecx, [edi + 0x1264]
call fcn.005409a0
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 0x24
test eax, eax
je 0x52161b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 0x23
test eax, eax
je 0x52162e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x22
test eax, eax
je 0x521641
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0x21
jmp 0x52167b
push 0x88ca18
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0xa1a6
call fcn.008039e9
mov ecx, dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004a8ed0
mov dword [ebp - 4], 0x21
mov eax, 0x521678
ret
mov ecx, edi
call fcn.007d4efc
mov ecx, dword [ebp - 0x20]
xor ebx, ebx
cmp dword [ecx - 0xc], ebx
je 0x521834
mov ecx, edi
call fcn.00519b10
lea edx, [ebp - 0x20]
lea ecx, [edi + 0x2a0]
push edx
call fcn.004aa540
call fcn.007cff5d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x5216f4
push 0x80004005
call fcn.004a8210
mov edx, dword [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x20]
call fcn.004aa540
mov dword [ebp - 4], 0x21
mov eax, 0x5216d9
ret
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
push 0x8155
mov byte [ebp - 4], 0x2f
call fcn.007cfe78
cmp eax, ebx
je 0x521726
push 0x8155
push eax
lea ecx, [ebp - 0x28]
call fcn.004a8d10
mov esi, dword [ebp - 0x28]
xor eax, eax
cmp esi, ebx
setne al
mov byte [ebp - 4], 0x21
cmp eax, ebx
jne 0x52173f
push 0x80004005
call fcn.004a8210
mov eax, dword [ebp - 0x20]
mov ecx, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x52176a
cmp dx, bx
je 0x521766
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x52176a
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x521744
xor eax, eax
jmp 0x52176f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
lea eax, [esi - 0x10]
setne bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x521790
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x52185f
cmp dword [ebp - 0x38], 0
je 0x521826
push 0
lea ecx, [edi + 0xf18]
call fcn.0054d5e0
lea ecx, [edi + 0xf18]
call fcn.0054d530
test al, al
je 0x5217c4
inc dword [edi + 0x268]
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x254], 0
jne 0x5217f7
mov ecx, dword [edi + 0x268]
cmp ecx, dword [eax + 0x250]
jl 0x5217f7
lea ecx, [edi + 0xf18]
call fcn.0054d500
cmp eax, 1
jle 0x52185f
mov ecx, edi
call fcn.004ee1a0
jmp 0x52185f
cmp dword [0x8d2cfc], 0x399
lea ecx, [edi + 0xf18]
jne 0x521810
call fcn.0054dc90
jmp 0x521815
call fcn.0054e990
test al, al
je 0x52185f
push 0
push 0
mov ecx, edi
call fcn.00522110
jmp 0x52185f
push 0x39a
mov ecx, edi
call fcn.00519260
jmp 0x52185f
push 1
lea ecx, [edi + 0xf18]
call fcn.0054d5e0
mov esi, dword [ebp - 0x24]
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x74]
mov edx, eax
or edx, ecx
je 0x52185f
push ecx
push eax
mov ecx, edi
call fcn.005001a0
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [0x8d2cfc], 0
call fcn.007c9a2f
mov eax, dword [eax + 4]
cmp byte [eax + 0x520], 0
je 0x52188a
cmp byte [edi + 0x2c8], 0
je 0x5218ab
mov ecx, edi
call fcn.004f50e0
cmp byte [edi + 0x2c8], 0
je 0x5218ab
call fcn.007c9a2f
mov eax, dword [eax + 4]
cmp byte [eax + 0x446], 0
je 0x5218ab
mov byte [edi + 0x2c9], 1
mov eax, dword [ebp + 0x2fc]
mov ecx, dword [eax + 4]
mov esi, dword [edi + 0x304]
lea ebx, [edi + 0x304]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x521911
cmp dword [esi + 0xc], 0
jl 0x521905
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x521905
push eax
call fcn.004a9b50
mov dword [ebp - 0x28], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5218fb
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x10
mov dword [ebx], ecx
jmp 0x521911
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, ebx
call fcn.004a8db0
mov edx, dword [edi + 0x20]
push 0
push 0
push 0x36a
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
cmp byte [edi + 0x4a30], 0
jne 0x52194a
lea ecx, [edi + 0x4a18]
call fcn.004afe70
push 0
lea ecx, [edi + 0x308]
push 0x402a88
call fcn.004a8db0
mov eax, dword [ebp - 0x20]
mov byte [edi + 0x4a30], 0
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 1
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52197b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52199e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x2fc]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x5219b7
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2f0]
xor ecx, ebp
call fcn.0080262b
lea esp, [ebp + 0x2f4]
pop ebp
ret 4