Function at 0x521d9a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x168
mov esi, dword [ebp + 8]
mov ebx, ecx
cmp byte [edx + 0x34], 0
mov edi, dword [esi + 0x58]
mov ecx, dword [esi + 0x5c]
je 0x5222e7
bt edi, 0xa
jae 0x5222e7
mov eax, ecx
and eax, 0x20000000
je 0x5222e7
mov eax, dword [esi + 0x48]
mov dword [esp + 0xc], ebx
mov ebx, dword [edx + 0x60]
mov dword [esp + 4], edx
lea ecx, [esp + 0x100]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x4c]
mov edx, eax
mov dword [esp + 0x14], eax
push dword [esi + 0x50]
call fcn.0050aff0
pop eax
lea edi, [esp + 0x68]
mov edx, ebx
mov dword [esp + 0x24], ebx
mov ecx, edi
push 1
lea eax, [esp + 0x104]
push eax
call fcn.00521a93
pop eax
pop ecx
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, ecx
xor eax, 2
or eax, edx
jne 0x521e8e
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x90]
movsd xmm0, qword [esp + 0x80]
mov eax, dword [esp + 0x70]
movsd xmm1, qword [esp + 0x88]
mov ebx, dword [esp + 0x7c]
mov edi, dword [esp + 0x94]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 4], eax
movsd qword [esp + 0x28], xmm0
movsd qword [esp + 0x50], xmm0
movsd qword [esp + 0x58], xmm1
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 8]
jmp 0x5220cf
mov dword [esp + 0xf4], edx
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
movsd xmm0, qword [esp + 0x80]
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0xc0]
mov esi, dword [esp + 0xc4]
mov ebx, dword [esp + 0xc8]
mov dword [esp + 0xf0], edx
mov dword [esp + 0xe4], ecx
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x90]
movsd qword [esp + 0x28], xmm0
movsd xmm0, qword [esp + 0x88]
mov dword [esp + 0xec], eax
mov dword [esp + 0xe8], edx
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0xb0]
movsd qword [esp + 0x30], xmm0
movsd xmm0, qword [esp + 0x98]
mov dword [esp + 0xe0], edx
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb8]
movsd qword [esp + 0x148], xmm0
movsd xmm0, qword [esp + 0xa0]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0xbc]
mov ecx, dword [esp + 0xcc]
movsd qword [esp + 0x150], xmm0
movsd xmm0, qword [esp + 0xa8]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xd8], ecx
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x14]
movsd qword [esp + 0x158], xmm0
call fcn.00446465
mov eax, dword [esp + 0x38]
movsd xmm0, qword [esp + 0x28]
movsd xmm1, qword [esp + 0x30]
mov ecx, edi
mov edx, esi
mov dword [esp + 8], esi
mov dword [esp + 0x128], eax
movsd qword [esp + 0x120], xmm1
movsd qword [esp + 0x118], xmm0
call fcn.00521579
mov edx, dword [esp + 0x20]
test al, al
je 0x5221ce
lea edx, [esp + 0x68]
lea esi, [esp + 0xf8]
mov dword [esp + 0xd0], ebx
and dword [edx], 0
and dword [edx + 0xc], 0
mov dword [edx + 0x10], 7
and dword [edx + 0x1a], 0
and dword [edx + 0x18], 0
and dword [edx + 0x14], 0
and dword [edx + 0x1e], 0
mov byte [edx + 0x1c], 1
mov dword [edx + 8], 0x2000000
mov ecx, esi
push dword [esp + 0x10]
push dword [esp + 0x20]
call fcn.005071c0
pop eax
pop ecx
cmp byte [esi], 4
jne 0x52202d
mov esi, dword [esp + 0xfc]
jmp 0x52204b
mov eax, dword [esp + 0xf8]
mov esi, dword [esp + 0xfc]
mov ecx, dword [esp + 0x24]
cmp al, 4
je 0x52204b
cmp al, 4
jne 0x5225db
lea ebx, [esp + 0x68]
lea edx, [esp + 0x160]
mov ecx, ebx
mov dword [edx], esi
call fcn.004f73c1
cmp dword [ebx], 0
je 0x52211b
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
mov eax, esi
mov esi, dword [esp + 0x70]
push eax
call sub.kernel32.dll_CloseHandle
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov edi, ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x80000000
movsd xmm0, qword [esp + 0x100]
movsd xmm1, qword [esp + 0x108]
mov eax, dword [esp + 0x110]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 8]
movsd qword [esp + 0x50], xmm0
movsd qword [esp + 0x58], xmm1
mov dword [esp + 0x60], eax
call fcn.00446465
mov eax, dword [esp + 0x60]
movsd xmm0, qword [esp + 0x50]
movsd xmm1, qword [esp + 0x58]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x28], eax
movsd qword [esi + 0x20], xmm1
movsd qword [esi + 0x18], xmm0
and dword [esi + 4], 0
mov dword [esi], 2
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x10], edx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x2c], edi
jmp 0x5225d3
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
and dword [esp + 0x34], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], 2
mov dword [esp + 0x28], 1
and dword [esp + 0x2c], 0
mov dword [esp + 0x44], esi
xor esi, esi
mov dword [esp + 0xd4], edx
inc esi
mov ebx, dword [eax + 0x48]
imul eax, dword [eax + 0x4c], 0x30
test eax, eax
je 0x5221ba
test esi, esi
je 0x5221b5
mov edx, dword [ebx + eax - 0x2c]
or edx, dword [ebx + eax - 0x30]
je 0x5221b5
mov edx, dword [ebx + eax - 0x28]
xor edx, ecx
or edx, dword [ebx + eax - 0x24]
jne 0x5221b5
mov edx, dword [ebx + eax - 0x20]
mov esi, ecx
mov ecx, dword [ebx + eax - 0x1c]
xor edx, dword [esp + 0xd4]
xor ecx, dword [esp + 0x14]
or ecx, edx
mov ecx, esi
mov esi, 1
je 0x5225ec
add eax, 0xffffffd0
jmp 0x522173
lea ecx, [esp + 0x28]
call fcn.0052284b
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0xd0]
movsd xmm2, qword [esp + 0x148]
movsd xmm3, qword [esp + 0x150]
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x128]
movsd xmm0, qword [esp + 0x118]
movsd xmm1, qword [esp + 0x120]
movsd qword [esp + 0x130], xmm2
movsd xmm2, qword [esp + 0x158]
movsd qword [esp + 0x138], xmm3
lea ecx, [esi + 0x18]
mov dword [esp + 0x60], eax
movsd qword [esp + 0x58], xmm1
movsd qword [esp + 0x50], xmm0
movsd xmm4, qword [esp + 0x130]
movsd xmm3, qword [esp + 0x138]
mov dword [ecx + 0x10], eax
lea eax, [esi + 0x30]
movsd qword [ecx + 8], xmm1
movsd qword [ecx], xmm0
mov ecx, dword [esp + 8]
movsd qword [esp + 0x140], xmm2
movsd xmm2, qword [esp + 0x140]
movsd qword [eax + 8], xmm3
movsd qword [eax], xmm4
movsd qword [eax + 0x10], xmm2
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x48], edx
mov edx, dword [esp + 0xf4]
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0xdc]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0xd8]
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], ebx
mov ebx, dword [esp + 0x18]
mov dword [esi + 0x64], eax
mov dword [esi + 4], edx
mov edx, dword [esp + 0xec]
mov dword [esi], ebx
mov ebx, dword [esp + 0xe4]
mov dword [esi + 8], edx
mov edx, dword [esp + 0xf0]
mov dword [esi + 0x10], ebx
mov ebx, dword [esp + 0xe8]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0xe0]
mov dword [esi + 0x14], ebx
mov ebx, dword [esp + 0xc]
mov dword [esi + 0x2c], edx
mov edx, dword [esp + 4]
bt edi, 0xa
jae 0x522398
mov eax, ecx
and eax, 0x20000000
je 0x522398
cmp dword [esi + 0x60], 0
jne 0x522588
cmp byte [edx + 0x35], 0
je 0x522588
mov dword [esp + 4], edx
mov edx, dword [esi + 0x4c]
mov edi, dword [esi + 0x50]
lea esi, [esp + 0x68]
mov ecx, esi
mov dword [esp + 8], edx
push edi
call fcn.005084f0
pop eax
mov eax, dword [esi]
xor eax, 2
or eax, dword [esi + 4]
jne 0x5223e7
lea esi, [esp + 0x74]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 8]
mov eax, dword [esi - 4]
mov ecx, dword [esi]
mov edx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 4], eax
mov ecx, esi
push edi
call fcn.0050aff0
mov edx, ebx
add esp, 4
mov eax, dword [esp + 0x14]
and dword [esi + 0x18], 0
and dword [esi - 0xc], 0
mov dword [esi - 4], eax
mov eax, dword [esp + 4]
mov dword [esi - 8], eax
mov eax, dword [esp + 0xc]
lea edi, [eax + 8]
push 0xa
pop ecx
lea esi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
mov dword [eax], 2
and dword [eax + 4], 0
jmp 0x5225c8
mov eax, ecx
mov dword [esp + 4], edx
mov ecx, edi
mov edx, eax
call fcn.00521579
mov edx, dword [esp + 4]
test al, al
je 0x522588
cmp byte [edx + 0x37], 0
je 0x522431
cmp dword [esi + 0x60], 0
je 0x522431
mov edi, dword [esi + 0x4c]
mov eax, dword [esi + 0x50]
lea esi, [esp + 0x68]
mov ecx, esi
mov edx, edi
mov dword [esp + 0x14], eax
push eax
call fcn.00520e73
pop eax
cmp byte [esi], 4
mov dword [esp + 0xc], ebx
jne 0x522455
mov eax, dword [esp + 0x6c]
jmp 0x522466
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
call fcn.00521579
mov esi, dword [ebp + 8]
mov edx, dword [esp + 4]
test al, al
je 0x522588
lea esi, [esp + 0x68]
mov ecx, esi
push edi
mov edi, dword [esp + 0xc]
push edi
call fcn.00522861
pop eax
pop ecx
cmp dword [esi], 2
jne 0x5225b0
mov esi, dword [ebp + 8]
mov edx, dword [esp + 4]
jmp 0x522588
mov edi, dword [esi + 0x4c]
lea ecx, [esp + 0x68]
push dword [esi + 0x50]
push edi
call fcn.00522861
pop eax
pop ecx
lea eax, [esp + 0x68]
cmp dword [eax], 2
je 0x522548
jmp 0x5225b0
mov ebx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
cmp bl, 4
jne 0x522484
mov ebx, dword [esp + 0xc]
lea esi, [esp + 0x68]
mov edx, eax
mov ecx, esi
call fcn.00520ee6
cmp dword [esi], 0
je 0x5224ff
mov ebx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov edx, dword [ebp + 8]
lea esi, [esp + 0x28]
mov ecx, esi
push eax
push ebx
call fcn.00521546
pop eax
pop ecx
mov eax, dword [esi]
cmp eax, 2
jne 0x5224af
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0xc]
mov dword [esp + 8], edi
jmp 0x52250c
mov ebx, edi
movsd xmm0, qword [esp + 0x40]
mov edi, dword [esp + 0xc]
movsd xmm2, qword [esp + 0x48]
movsd xmm1, qword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
movsd qword [edi + 0x20], xmm0
movsd qword [edi + 0x28], xmm2
movsd qword [edi + 0x18], xmm1
and dword [edi + 4], 0
mov dword [edi], 2
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov edx, ebx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x10], esi
jmp 0x5225c8
mov eax, dword [esp + 0x88]
mov dword [esp + 8], edi
xor ecx, ecx
mov edi, dword [esp + 4]
mov edx, dword [edi]
or edx, dword [edi + 4]
je 0x52266b
xor eax, dword [edi + 8]
xor ecx, dword [edi + 0xc]
mov esi, dword [ebp + 8]
mov edx, edi
or ecx, eax
jne 0x52254c
lea esi, [esp + 0x68]
mov ecx, esi
push dword [esp + 0x14]
mov edi, dword [esp + 0xc]
push edi
call fcn.00522861
pop eax
pop ecx
cmp dword [esi], 2
jne 0x5225b0
mov esi, dword [ebp + 8]
mov edx, dword [esp + 4]
cmp byte [edx + 0x36], 0
je 0x522588
mov eax, edx
mov edx, dword [edx + 0x58]
cmp edx, dword [eax + 0x50]
jne 0x52256b
lea ecx, [eax + 0x50]
mov esi, eax
call fcn.00521436
mov edx, dword [esi + 0x58]
mov eax, esi
imul edi, edx, 0x68
add edi, dword [eax + 0x54]
push 0x1a
pop ecx
mov esi, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], 3
inc dword [eax + 0x58]
and dword [ebx + 4], 0
jmp 0x5225d3
mov eax, dword [edx + 0x60]
cmp eax, dword [edx + 0x2c]
jb 0x52259e
cmp eax, dword [edx + 0x30]
ja 0x52259e
push 0x1a
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
jmp 0x5225d3
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x4c]
and dword [ebx + 4], 0
mov dword [ebx], 3
jmp 0x5225ce
mov edx, edi
lea edi, [ebx + 8]
push 0xa
pop ecx
lea esi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], 2
and dword [ebx + 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
call fcn.00446465
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x18], eax
jmp 0x522088
mov edx, dword [ebx + eax - 0xc]
mov dword [esp + 4], esi
lea ecx, [esp + 0x6c]
push dword [ebx + eax - 8]
call fcn.0050aff0
pop eax
mov ebx, dword [esp + 0x1c]
lea esi, [esp + 0x7c]
mov ecx, esi
mov edx, ebx
push dword [esp + 0x10]
call fcn.0050aff0
pop eax
mov ecx, dword [esi - 0xc]
movsd xmm0, qword [esi - 4]
mov eax, dword [esi - 0x10]
mov edx, dword [esi - 8]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0xc]
movsd qword [esp + 0x100], xmm0
movsd xmm0, qword [esi + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 8], edx
mov dword [esp + 0x110], ecx
lea ecx, [esp + 0x28]
movsd qword [esp + 0x108], xmm0
call fcn.0052284b
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x24]
mov edx, ebx
jmp 0x52209e
push 0x33
pop edx
mov ecx, str.BUG:_called_is_same_file_system_without_root_device
push 0x651f10
call fcn.0059f240