Function at 0x5238b0
Capabilities:
Get disk information

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x508
mov eax, dword [ecx + 8]
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x4ec], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
test eax, eax
jne 0x523950
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x523950
mov dword [ebp - 0x268], 2
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0x7459f0
mov dword [esp + 4], str.Empty_filename_passed_to_function
lea eax, [ebp - 0x268]
xor ebx, ebx
mov dword [esp], eax
call fcn.0072013c
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x16
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
lea ecx, [ebp - 0x268]
mov dword [esp], ebx
xor edi, edi
call fcn.00628750
lea ecx, [ebp - 0x268]
sub esp, 4
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov word [esp], di
call fcn.006660c0
mov edx, dword [ebp - 0x268]
sub esp, 0xc
mov edi, eax
mov ecx, dword [edx]
test ecx, ecx
je 0x5239a4
cmp ecx, 0xffffffff
je 0x5239bc
lock sub dword [edx], 1
mov edx, dword [ebp - 0x268]
jne 0x5239bc
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], edx
call fcn.004a4c50
cmp edi, 0xffffffff
jne 0x524150
mov edi, dword [ebp - 0x4ec]
lea ecx, [ebp - 0x4c8]
or edi, 0xa760000
mov eax, edi
not eax
and dword [esi + 4], eax
call fcn.0050ff60
or dword [esi], 0x8000000
lea ecx, [ebp - 0x4dc]
mov dword [esp], ebx
call fcn.00629a30
sub esp, 4
lea ecx, [ebp - 0x4dc]
mov dword [esp + 8], 1
mov dword [esp], 4
mov dword [esp + 4], 0x745aa4
call fcn.00666fa0
sub esp, 0xc
test al, al
je 0x523a38
lea eax, [ebp - 0x4dc]
xor edx, edx
call fcn.004a1120
test al, al
je 0x523d80
lea ecx, [ebp - 0x4c8]
mov dword [esp], ebx
call fcn.005b1220
lea eax, [ebx + 4]
sub esp, 4
lea ecx, [ebp - 0x4c4]
mov dword [esp], eax
call fcn.005b1220
movzx eax, word [ebx + 8]
sub esp, 4
mov word [ebp - 0x4c0], ax
movzx eax, word [ebx + 0xa]
mov word [ebp - 0x4be], ax
movzx eax, word [ebx + 0xc]
mov word [ebp - 0x4bc], ax
mov eax, dword [ebp - 0x4c8]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x523cd0
mov eax, dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [esp], 0x8001
mov dword [ebp - 0x4f8], eax
call eax
pxor xmm0, xmm0
mov dword [ebp - 0x4f0], eax
lea eax, [ebp - 0x4c8]
sub esp, 4
lea ecx, [ebp - 0x268]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x30], 0
movups xmmword [esi + 0x20], xmm0
mov dword [esp], eax
call fcn.00628750
lea ecx, [ebp - 0x268]
sub esp, 4
call fcn.00665e50
lea ebx, [ebp - 0x4b8]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
mov edx, dword [ebp - 0x268]
sub esp, 0xc
mov ebx, eax
mov ecx, dword [edx]
test ecx, ecx
je 0x523b30
cmp ecx, 0xffffffff
je 0x523b48
lock sub dword [edx], 1
mov edx, dword [ebp - 0x268]
jne 0x523b48
lea esi, [esi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], edx
call fcn.004a4c50
test ebx, ebx
je 0x523e90
lea ecx, [ebp - 0x4c8]
call fcn.00628660
mov ecx, dword [ebp - 0x4b8]
test al, al
mov edx, dword [esi + 4]
mov dword [esi + 0x10], ecx
jne 0x523b74
test cl, 2
jne 0x524260
mov eax, dword [esi]
and ecx, 0x10
mov dword [ebp - 0x4fc], eax
je 0x5241f0
or edx, 0x440000
mov eax, dword [ebp - 0x4b4]
mov dword [esi + 8], 0
mov dword [esi + 4], edx
mov edx, dword [ebp - 0x4b0]
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x4ac]
mov dword [esi + 0x18], edx
mov edx, dword [ebp - 0x4a8]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x4a4]
mov dword [esi + 0x28], edx
mov edx, dword [ebp - 0x4a0]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], edx
mov dword [esi + 0x20], edx
mov eax, dword [ebp - 0x4fc]
or eax, 0x2760000
mov dword [esi], eax
mov eax, dword [ebp - 0x4f0]
mov dword [esp], eax
mov eax, dword [ebp - 0x4f8]
call eax
sub esp, 4
test dword [ebp - 0x4ec], 0x7777
jne 0x523d60
test dword [ebp - 0x4ec], 0x10000
mov eax, dword [esi]
je 0x523c28
or eax, 0x10000
test byte [esi + 0x11], 4
mov dword [esi], eax
jne 0x523fe0
mov edx, dword [ebp - 0x4dc]
or eax, edi
mov ebx, 1
mov dword [esi], eax
mov eax, dword [edx]
test eax, eax
jne 0x523d16
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], edx
call fcn.004a4c50
mov edx, dword [ebp - 0x4c4]
mov eax, dword [edx]
test eax, eax
je 0x523d40
cmp eax, 0xffffffff
je 0x523c7e
lock sub dword [edx], 1
mov edx, dword [ebp - 0x4c4]
je 0x523d40
mov edx, dword [ebp - 0x4c8]
mov eax, dword [edx]
test eax, eax
je 0x523ca3
cmp eax, 0xffffffff
je 0x52393e
lock sub dword [edx], 1
mov edx, dword [ebp - 0x4c8]
jne 0x52393e
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], edx
call fcn.004a4c50
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x4c4]
mov edx, dword [eax + 4]
test edx, edx
jne 0x523a8f
pxor xmm0, xmm0
or dword [esi], edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x30], 0
xor ebx, ebx
movups xmmword [esi + 0x10], xmm0
movups xmmword [esi + 0x20], xmm0
mov edx, dword [ebp - 0x4dc]
mov eax, dword [edx]
test eax, eax
je 0x523c41
cmp eax, 0xffffffff
je 0x523c59
lock sub dword [edx], 1
mov edx, dword [ebp - 0x4dc]
je 0x523c41
mov edx, dword [ebp - 0x4c4]
mov eax, dword [edx]
test eax, eax
jne 0x523c69
nop
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], edx
call fcn.004a4c50
jmp 0x523c7e
lea eax, [ebp - 0x4c8]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.005268a0
jmp 0x523c09
or dword [esi + 4], 0x8000000
lea eax, [ebp - 0x268]
mov edx, ebx
call fcn.004a02f0
lea eax, [ebp - 0x268]
lea ecx, [ebp - 0x4b8]
mov dword [esp], eax
call fcn.0050fe40
mov edx, dword [ebp - 0x4b8]
mov eax, dword [ebp - 0x4c8]
sub esp, 4
mov dword [ebp - 0x4c8], edx
mov edx, dword [ebp - 0x4b4]
mov dword [ebp - 0x4b8], eax
mov eax, dword [ebp - 0x4c4]
mov dword [ebp - 0x4c4], edx
movzx edx, word [ebp - 0x4b0]
mov dword [ebp - 0x4b4], eax
mov word [ebp - 0x4c0], dx
movzx edx, word [ebp - 0x4ae]
mov word [ebp - 0x4be], dx
movzx edx, word [ebp - 0x4ac]
mov word [ebp - 0x4bc], dx
mov edx, dword [eax]
test edx, edx
je 0x5241b0
cmp edx, 0xffffffff
je 0x523e1e
lock sub dword [eax], 1
je 0x5241b0
mov eax, dword [ebp - 0x4b8]
mov edx, dword [eax]
test edx, edx
je 0x524190
cmp edx, 0xffffffff
je 0x523e43
lock sub dword [eax], 1
mov eax, dword [ebp - 0x4b8]
je 0x524190
mov eax, dword [ebp - 0x268]
mov edx, dword [eax]
test edx, edx
je 0x523e70
cmp edx, 0xffffffff
je 0x523a7e
lock sub dword [eax], 1
mov eax, dword [ebp - 0x268]
jne 0x523a7e
nop
lea esi, [esi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x523a7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x524310
cmp eax, 0x20
je 0x524310
lea ecx, [ebp - 0x4c8]
call fcn.00628660
test al, al
jne 0x524270
lea eax, [ebp - 0x4c8]
lea ecx, [ebp - 0x4d4]
mov dword [esp], eax
call fcn.00628750
sub esp, 4
lea ecx, [ebp - 0x4d4]
mov dword [esp + 8], 1
mov dword [esp], 7
mov dword [esp + 4], str._UNC
call fcn.00663390
sub esp, 0xc
test al, al
mov ebx, eax
mov edx, dword [ebp - 0x4d4]
je 0x524617
mov eax, dword [edx + 0xc]
lea ecx, [ebp - 0x4d4]
movzx eax, word [edx + eax]
mov dword [esp + 8], 1
mov dword [esp + 4], 7
mov word [esp], ax
call fcn.006660c0
sub esp, 0xc
test eax, eax
jle 0x52461e
mov edx, dword [ebp - 0x4d4]
add eax, 1
mov ecx, dword [edx + 0xc]
movzx edx, word [edx + ecx]
lea ecx, [ebp - 0x4d4]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov word [esp], dx
call fcn.006660c0
sub esp, 0xc
test eax, eax
jle 0x52461e
mov edx, dword [ebp - 0x4d4]
mov ebx, dword [edx + 4]
lea ecx, [ebx - 1]
cmp eax, ecx
je 0x52461e
xor ebx, ebx
xor ecx, ecx
lea esi, [esi]
lea edi, [edi]
mov eax, dword [edx]
test eax, eax
je 0x5245ee
cmp eax, 0xffffffff
je 0x523faf
lock sub dword [edx], 1
mov edx, dword [ebp - 0x4d4]
je 0x5245ee
test bl, bl
je 0x524562
cmp ecx, 1
mov dword [esi + 0x10], ecx
sbb eax, eax
and eax, 0xfffe0000
add eax, 0x40000
or eax, dword [esi + 4]
or dword [esi], 0x560000
or eax, 0x400000
mov dword [esi + 4], eax
jmp 0x523be5
lea eax, [ebp - 0x4c8]
lea ecx, [ebp - 0x4b8]
mov dword [esp], eax
call fcn.00628750
jmp 0x524012
lea ecx, [ebp - 0x4b8]
mov dword [esp], 1
call fcn.005acba0
sub esp, 4
mov eax, 0x5c
lea ecx, [ebp - 0x4b8]
mov dword [esp + 4], 1
mov word [esp], ax
call fcn.00667010
sub esp, 8
test al, al
mov ebx, eax
jne 0x524000
mov eax, 0x3a
lea ecx, [ebp - 0x4b8]
mov dword [esp + 4], 1
mov word [esp], ax
call fcn.00667010
sub esp, 8
test al, al
je 0x524485
mov eax, dword [ebp - 0x4b8]
mov edx, dword [eax]
test edx, edx
je 0x5241d3
cmp edx, 0xffffffff
je 0x524086
lock sub dword [eax], 1
mov eax, dword [ebp - 0x4b8]
je 0x5241d3
test bl, bl
mov eax, dword [esi]
je 0x523c28
mov edx, dword [ebp - 0x268]
mov ecx, dword [esi + 4]
test dl, 2
mov dword [esi + 0x10], edx
je 0x5240aa
or ecx, 0x100000
mov dword [esi + 4], ecx
test dl, 0x10
je 0x5244e2
or ecx, 0x440000
mov ebx, dword [ebp - 0x260]
mov dword [esi + 8], 0
mov dword [ebp - 0x4ec], ecx
mov ecx, dword [ebp - 0x264]
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], ebx
mov ebx, dword [ebp - 0x258]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 0x25c]
mov dword [esi + 0x28], ebx
mov ebx, dword [ebp - 0x250]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp - 0x254]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x4ec]
or eax, 0x2770000
mov dword [esi], eax
and ecx, 0xfffeffff
and dh, 4
mov dword [esi + 4], ecx
je 0x523c28
cmp dword [ebp - 0x244], 0xa000000c
jne 0x523c28
mov edx, ecx
or edx, 0x10000
mov dword [esi + 4], edx
jmp 0x523c28
mov dword [ebp - 0x268], 2
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0x7459f0
mov dword [esp + 4], str.Broken_filename_passed_to_function
jmp 0x523922
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x523e43
mov eax, dword [ebp - 0x4b4]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x523e1e
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x524086
or edx, 0x420000
mov eax, dword [ebp - 0x4b4]
mov ecx, dword [ebp - 0x49c]
mov dword [esi + 4], edx
mov edx, dword [ebp - 0x4b0]
xor ebx, ebx
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x4ac]
mov dword [esi + 0x18], edx
mov edx, dword [ebp - 0x4a8]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x4a4]
mov dword [esi + 0x28], edx
mov edx, dword [ebp - 0x4a0]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x1c], eax
xor eax, eax
mov dword [esi + 0x30], edx
mov dword [esi + 0x20], edx
mov edx, ecx
mov ecx, dword [ebp - 0x498]
add eax, ecx
adc edx, ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
jmp 0x523bd8
or edx, 0x100000
mov dword [esi + 4], edx
jmp 0x523b74
mov dword [esp], 0x8001
mov eax, dword [ebp - 0x4f8]
call eax
sub esp, 4
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x4fc], eax
mov dword [esp], ebx
mov eax, dword [ebp - 0x4f8]
call eax
lea eax, [ebp - 0x4c8]
sub esp, 4
lea ecx, [ebp - 0x4cc]
mov dword [esp], eax
call fcn.00629a30
mov ebx, dword [ebp - 0x4cc]
sub esp, 4
mov eax, dword [ebx + 0xc]
movzx eax, word [ebx + eax]
call fcn.0058ea50
lea ecx, [eax - 0x41]
mov eax, dword [ebx]
mov edx, 1
shl edx, cl
test eax, eax
je 0x5245c5
cmp eax, 0xffffffff
je 0x5242f0
lock sub dword [ebx], 1
mov ebx, dword [ebp - 0x4cc]
je 0x5245c5
test dword [ebp - 0x4fc], edx
je 0x524562
mov dword [esi + 0x10], 0x14
mov eax, 0x40000
jmp 0x523fc9
lea eax, [ebp - 0x4c8]
lea ecx, [ebp - 0x4d8]
mov dword [esp], eax
call fcn.00628750
jmp 0x524342
lea ecx, [ebp - 0x4d8]
mov dword [esp], 1
call fcn.005acba0
sub esp, 4
mov eax, 0x5c
lea ecx, [ebp - 0x4d8]
mov dword [esp + 4], 1
mov word [esp], ax
call fcn.00667010
sub esp, 8
test al, al
mov ebx, eax
jne 0x524330
mov eax, 0x3a
lea ecx, [ebp - 0x4d8]
mov dword [esp + 4], 1
mov word [esp], ax
call fcn.00667010
sub esp, 8
test al, al
je 0x524580
mov eax, dword [ebp - 0x4d8]
mov edx, dword [eax]
test edx, edx
je 0x5244c5
cmp edx, 0xffffffff
je 0x5243b6
lock sub dword [eax], 1
mov eax, dword [ebp - 0x4d8]
je 0x5244c5
test bl, bl
je 0x523ea8
lea ecx, [ebp - 0x4c8]
call fcn.00628660
mov ecx, dword [ebp - 0x268]
test al, al
mov edx, dword [esi + 4]
mov dword [esi + 0x10], ecx
jne 0x5243e7
test cl, 2
je 0x5243e7
or edx, 0x100000
mov dword [esi + 4], edx
test cl, 0x10
mov ebx, dword [esi]
je 0x5247a0
or edx, 0x440000
mov eax, dword [ebp - 0x264]
mov dword [esi + 8], 0
mov dword [ebp - 0x4fc], edx
mov edx, dword [ebp - 0x260]
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x25c]
mov dword [esi + 0x18], edx
mov edx, dword [ebp - 0x258]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x254]
mov dword [esi + 0x28], edx
mov edx, dword [ebp - 0x250]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], edx
mov dword [esi + 0x20], edx
mov eax, ebx
or eax, 0x2770000
mov dword [esi], eax
mov eax, dword [ebp - 0x4fc]
and eax, 0xfffeffff
and ch, 4
mov dword [esi + 4], eax
je 0x523be5
cmp dword [ebp - 0x244], 0xa000000c
jne 0x523be5
or eax, 0x10000
mov dword [esi + 4], eax
jmp 0x523be5
lea ecx, [ebp - 0x4b8]
call fcn.00665e50
lea edx, [ebp - 0x268]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
sub esp, 8
cmp eax, 0xffffffff
je 0x524061
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
mov ebx, 1
jmp 0x524061
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x5243b6
or ecx, 0x420000
mov ebx, dword [ebp - 0x260]
mov dword [ebp - 0x4ec], ecx
mov ecx, dword [ebp - 0x264]
mov dword [esi + 0x18], ebx
mov ebx, dword [ebp - 0x258]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 0x25c]
mov dword [esi + 0x28], ebx
mov ebx, dword [ebp - 0x250]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp - 0x254]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x24c]
mov ebx, ecx
mov ecx, 0
mov dword [ebp - 0x4f8], ecx
mov dword [ebp - 0x4f4], ebx
xor ebx, ebx
mov ecx, dword [ebp - 0x248]
add ecx, dword [ebp - 0x4f8]
adc ebx, dword [ebp - 0x4f4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
jmp 0x524109
mov eax, dword [ebp - 0x4f0]
mov dword [esp], eax
mov eax, dword [ebp - 0x4f8]
call eax
sub esp, 4
xor ebx, ebx
jmp 0x523d06
lea ecx, [ebp - 0x4d8]
call fcn.00665e50
lea edx, [ebp - 0x268]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
sub esp, 8
cmp eax, 0xffffffff
je 0x524391
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
cmp dword [ebp - 0x268], 0xffffffff
setne bl
jmp 0x524391
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], ebx
mov dword [ebp - 0x508], edx
call fcn.004a4c50
mov edx, dword [ebp - 0x508]
jmp 0x5242f0
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], edx
mov dword [ebp - 0x4fc], ecx
call fcn.004a4c50
mov ecx, dword [ebp - 0x4fc]
jmp 0x523faf
xor ecx, ecx
jmp 0x523f90
mov eax, 0x5c
lea ecx, [ebp - 0x4d0]
mov dword [esp + 0xc], 1
mov word [esp + 4], ax
lea eax, [ebp - 0x4d4]
mov dword [esp + 8], 1
mov dword [esp], eax
call fcn.00667730
mov edx, dword [ebp - 0x4d0]
sub esp, 0x10
cmp dword [edx + 4], 2
jle 0x52483d
mov eax, dword [edx + 0xc]
mov dword [esp + 4], 0
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x4cc], 0x8b6e98
lea ebx, [edx + eax + 0x18]
mov eax, dword [ebx + 8]
add eax, 2
mov dword [esp], eax
lea eax, [ebp - 0x4cc]
mov dword [ebp - 0x4fc], eax
call fcn.005b0ff0
mov eax, dword [ebp - 0x268]
sub esp, 8
add eax, dword [eax + 0xc]
mov dword [esp + 4], 2
mov dword [esp], 0x745a67
mov dword [esp + 8], eax
mov dword [ebp - 0x4fc], eax
call fcn.00566270
mov eax, dword [ebp - 0x4fc]
add eax, 4
mov dword [ebp - 0x4fc], eax
mov eax, dword [ebx + 8]
lea edx, [eax + eax]
mov eax, dword [ebx]
test eax, eax
je 0x524861
mov ecx, dword [eax]
mov eax, dword [ebx + 4]
lea eax, [ecx + eax*2]
add eax, dword [ecx + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4fc]
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
lea eax, [ebp - 0x4cc]
mov dword [ebp - 0x4fc], eax
mov dword [esp + 4], eax
lea eax, [ebp - 0x268]
mov dword [esp], eax
call fcn.005287c0
mov ebx, eax
mov eax, dword [ebp - 0x268]
mov edx, dword [eax]
test edx, edx
je 0x524844
cmp edx, 0xffffffff
je 0x524747
lock sub dword [eax], 1
mov eax, dword [ebp - 0x268]
je 0x524844
test bl, bl
je 0x52475b
mov eax, dword [ebp - 0x4d0]
cmp dword [eax + 4], 3
jg 0x524870
mov ecx, dword [ebp - 0x4fc]
call fcn.005974d0
mov edx, dword [ebp - 0x4d0]
mov eax, dword [edx]
test eax, eax
je 0x524820
cmp eax, 0xffffffff
je 0x52478b
lock sub dword [edx], 1
mov edx, dword [ebp - 0x4d0]
je 0x524820
xor ecx, ecx
test bl, bl
mov edx, dword [ebp - 0x4d4]
setne cl
shl ecx, 4
jmp 0x523f90
mov eax, dword [ebp - 0x264]
or edx, 0x420000
mov dword [ebp - 0x4fc], edx
mov edx, dword [ebp - 0x260]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x25c]
mov dword [esi + 0x18], edx
mov edx, dword [ebp - 0x258]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x254]
mov dword [esi + 0x28], edx
mov edx, dword [ebp - 0x250]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x24c]
mov dword [esi + 0x30], edx
mov dword [esi + 0x20], edx
mov edx, eax
mov eax, 0
mov dword [ebp - 0x508], eax
mov dword [ebp - 0x504], edx
xor edx, edx
mov eax, dword [ebp - 0x248]
add eax, dword [ebp - 0x508]
adc edx, dword [ebp - 0x504]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
jmp 0x524448
mov dword [esp + 8], 4
mov dword [esp + 4], 0xc
mov dword [esp], edx
call fcn.004a4c50
jmp 0x52478b
xor ebx, ebx
jmp 0x52476c
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x524747
mov eax, dword [0x880f8c]
add eax, 0x880f80
jmp 0x5246ec
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x268]
lea eax, [eax + edx + 0x24]
mov dword [esp], eax
call fcn.005fe320
push eax
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4fc]
mov dword [esp + 8], 0
mov dword [esp], eax
call fcn.005ee1d0
lea ecx, [ebp - 0x268]
mov ebx, eax
call fcn.005b1050
jmp 0x52475b