Function at 0x414210
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b7d8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x240
mov eax, dword [0x4cf06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x234], eax
mov eax, dword [ebx + 0xc]
push 0x10002
mov dword [ebp - 0x22c], eax
call fcn.0047d522
mov edi, eax
mov dword [ebp - 0x248], 0xffffffff
xor eax, eax
mov dword [ebp - 0x24c], edi
add esp, 4
mov word [edi], ax
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 4], eax
mov dword [ebp - 0x228], eax
cmp ecx, dword [esi + 0x7c4]
jge 0x4142ae
mov eax, dword [esi + 0x7c8]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x10]
jmp 0x4142b0
xor ecx, ecx
cmp dword [esi + 0xe6c], 0
mov dword [ebp - 0x224], ecx
jne 0x4142cf
cmp dword [esi + 0xe70], 0
jne 0x4142cf
mov edx, 1
jmp 0x4142d1
xor edx, edx
cmp dword [ebp - 0x22c], 0
mov dword [ebp - 0x244], edx
je 0x4142f6
mov edi, dword [ebp - 0x22c]
mov eax, dword [esi + 0xffc]
mov dword [edi], eax
mov edi, dword [ebp - 0x24c]
jmp 0x414302
lea eax, [esi + 0xffc]
mov dword [ebp - 0x22c], eax
cmp word [ecx + 2], 0x3a
jne 0x414310
cmp word [ecx + 4], 0x5c
jne 0x41432a
mov eax, dword [esi + 0x8d4]
test eax, eax
je 0x414324
cmp word [eax], 0
je 0x414324
xor al, al
jmp 0x414326
mov al, 1
test al, al
je 0x41433f
or edx, 2
push edx
push ecx
mov ecx, 0x3c
call fcn.0045a590
push eax
jmp 0x414aa8
lea eax, [ebp - 0x228]
push eax
push dword [esi + 0x830]
push 0x8000
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x414372
push dword [ebp - 0x244]
push dword [ebp - 0x224]
push 0x4afba0
jmp 0x414aa8
mov ecx, dword [esi + 0x830]
mov edx, ecx
call fcn.0045e950
mov ecx, dword [esi + 0x830]
lea edx, [ebp - 0x220]
call fcn.00457220
mov ecx, dword [esi + 0x830]
mov edx, ecx
call fcn.0045e850
push dword [esi + 0x830]
mov dword [esi + 0x848], eax
mov dword [ebp - 0x224], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x23c], eax
cmp eax, 0xffffffff
je 0x414484
test al, 0x10
je 0x414484
mov edx, dword [esi + 0x830]
mov ecx, edi
push 0x8000
call fcn.0041ae80
mov ecx, dword [esi + 0x830]
add esp, 4
mov edx, edi
push 0x7fffffff
push 0x4afbc0
call fcn.0045c480
mov ecx, dword [esi + 0x848]
xor eax, eax
cmp ecx, 7
mov edx, 2
cmove eax, edx
lea edx, [ebp - 0x220]
add eax, edx
push eax
lea eax, [edi + ecx*2]
push eax
call fcn.0048b155
add esp, 0x10
test eax, eax
je 0x414484
cmp dword [esi + 0x850], 0
jne 0x414448
test dword [ebp - 0x23c], 0x400
je 0x414484
mov ecx, esi
call fcn.00412a50
test al, al
je 0x414484
mov edx, dword [esi + 0x830]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x224], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414460
sub ecx, dword [ebp - 0x224]
sar ecx, 1
xor eax, eax
mov dword [ebp - 0x224], 1
mov word [edx + ecx*2 - 4], ax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x248], 0xffffffff
push eax
push edi
push 0x8000
push dword [esi + 0x830]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x414a8d
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x230], edx
test edx, edx
je 0x414a8d
mov eax, dword [esi + 0x684]
cmp eax, 8
je 0x414582
cmp eax, 9
je 0x414582
mov ecx, dword [esi + 0x844]
mov eax, dword [esi + 0x838]
lea ecx, [eax + ecx*2]
nop word [eax + eax]
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4144f0
push dword [esi + 0x838]
push edi
call fcn.0048b155
add esp, 8
test eax, eax
jne 0x41456c
cmp dword [esi + 0x684], 1
jne 0x41454a
mov eax, dword [esi + 0x690]
and eax, 0x10
or eax, 0
je 0x41454a
mov ecx, dword [esi + 0x844]
mov eax, dword [esi + 0x838]
mov dword [eax + ecx*2], 0x2a
mov dword [esi + 0x1000], 1
jmp 0x414576
mov ecx, dword [esi + 0x844]
mov eax, dword [esi + 0x838]
push 3
lea eax, [eax + ecx*2]
mov ecx, 0x2f
push eax
call fcn.0045a590
push eax
jmp 0x414aa8
mov dword [esi + 0x1000], 0
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x230], edx
cmp dword [esi + 0x684], 4
jne 0x4145da
mov ecx, dword [ebp - 0x23c]
mov eax, ecx
and eax, 0x410
cmp eax, 0x10
jne 0x4145da
push dword [esi + 0x838]
mov edx, ecx
mov ecx, dword [ebp - 0x230]
push edi
call fcn.004141a0
add esp, 8
test eax, eax
jne 0x4145d4
mov eax, dword [esi + 0x848]
mov ecx, 0x30
push 3
lea eax, [edi + eax*2]
push eax
call fcn.0045a590
push eax
jmp 0x414aa8
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x224]
test eax, eax
jne 0x4145e9
xor ecx, ecx
mov word [edx], cx
mov ecx, dword [ebp - 0x234]
push ecx
push eax
push edi
mov ecx, esi
call fcn.00415530
test eax, eax
je 0x414aaf
mov eax, dword [ebp - 0x228]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x24c]
call fcn.00411ce0
mov dword [esi + 0x840], eax
mov edi, dword [esi + 0xb64]
sub edi, dword [esi + 0xb60]
sar edi, 2
mov dword [ebp - 0x23c], edi
cmp edi, dword [ebp - 0x234]
ja 0x414747
nop
push 0x10
call fcn.0047d4f2
add esp, 4
mov dword [ebp - 0x244], eax
xorps xmm0, xmm0
mov dword [ebp - 0x230], eax
movups xmmword [eax], xmm0
mov dword [eax], 0
mov dword [eax + 4], 0xffffffff
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
lea ecx, [esi + 0xb60]
mov byte [ebp - 4], 2
mov edx, dword [ecx + 4]
cmp dword [ecx + 8], edx
je 0x41469b
mov dword [edx], eax
add dword [ecx + 4], 4
mov dword [ebp - 0x230], 0
jmp 0x4146a8
lea eax, [ebp - 0x230]
push eax
push edx
call fcn.0041b230
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.0041a390
mov eax, dword [ebp - 0x234]
cmp edi, eax
jne 0x414738
mov eax, dword [esi + 0xb60]
mov ecx, dword [eax + edi*4]
lea edx, [eax + edi*4]
mov eax, dword [esi + 0x848]
mov dword [ecx + 8], eax
mov eax, dword [edx]
mov ecx, dword [ebp - 0x224]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x24c]
mov edi, dword [edx]
test eax, eax
je 0x4146f1
cmp eax, dword [edi]
je 0x414723
mov ecx, dword [edi]
test ecx, ecx
je 0x41470c
push ecx
call fcn.0047d4ed
mov eax, dword [ebp - 0x24c]
add esp, 4
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
test eax, eax
je 0x414723
or edx, 0xffffffff
mov ecx, eax
call fcn.00412220
mov dword [edi], eax
mov eax, dword [ebp - 0x248]
mov dword [edi + 4], eax
mov edi, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x234]
inc edi
mov dword [ebp - 0x23c], edi
cmp edi, eax
jbe 0x414640
mov ecx, dword [ebp - 0x234]
lea edx, [ebp - 0x220]
mov eax, dword [esi + 0xb78]
mov eax, dword [eax + ecx*4]
mov ecx, 0x4c2758
mov dword [ebp - 0x23c], eax
mov edi, dword [eax + 0x68]
test edi, edi
cmovne ecx, edi
call fcn.004122a0
test eax, eax
je 0x414a35
lea eax, [ebp - 0x220]
cmp eax, edi
je 0x4147c0
test edi, edi
je 0x4147a2
push edi
call fcn.0047d4ed
mov edi, dword [ebp - 0x23c]
add esp, 4
mov dword [edi + 0x68], 0
jmp 0x4147a8
mov edi, dword [ebp - 0x23c]
or edx, 0xffffffff
mov dword [edi + 0x6c], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.00412220
mov dword [edi + 0x68], eax
lea eax, [ebp - 0x220]
mov ecx, esi
push eax
call fcn.00413aa0
mov dword [esi + 0x8c8], eax
lea edi, [esi + 0x8a8]
push edi
lea eax, [ebp - 0x220]
mov ecx, esi
push eax
call fcn.00413ca0
mov ecx, dword [esi + 0x8ac]
cmp eax, ecx
mov dword [esi + 0x8a4], eax
cmova ecx, eax
mov eax, dword [esi + 0x8b0]
mov dword [esi + 0x8b4], ecx
mov ecx, dword [edi]
cmp ecx, eax
cmovbe ecx, eax
mov eax, 0x1000
cmp ecx, eax
cmovb ecx, eax
mov eax, dword [esi + 0x694]
mov dword [ebp - 0x23c], eax
mov dword [esi + 0x8b8], ecx
mov ecx, dword [esi + 0x690]
mov eax, ecx
and eax, 0x40
or eax, 0
je 0x414847
mov eax, dword [ebp - 0x22c]
mov dword [eax], 1
jmp 0x414888
and ecx, 0x80
or ecx, 0
je 0x414860
mov eax, dword [ebp - 0x22c]
mov dword [eax], 0
jmp 0x414888
mov eax, dword [esi + 0x8d4]
mov ecx, 0x4c2758
test eax, eax
cmovne ecx, eax
lea eax, [ebp - 0x220]
push ecx
push eax
lea ecx, [esi + 0x18]
call fcn.00457040
mov ecx, dword [ebp - 0x22c]
mov dword [ecx], eax
test dword [esi + 0x8c8], 0x100
je 0x4148bf
test dword [esi + 0x8cc], 0x100
je 0x4148bf
mov edx, dword [esi + 0x690]
mov eax, edx
mov ecx, dword [esi + 0x694]
and eax, 0x200
or eax, 0
je 0x4148bf
mov edi, 1
jmp 0x4148cd
mov edx, dword [esi + 0x690]
xor edi, edi
mov ecx, dword [esi + 0x694]
test dword [esi + 0x8c8], 0x200
mov eax, edx
mov dword [esi + 0x880], edi
mov dword [ebp - 0x224], ecx
je 0x41491c
test dword [esi + 0x8cc], 0x200
mov dword [ebp - 0x224], ecx
je 0x41491c
and eax, 0x400
mov dword [ebp - 0x23c], edx
or eax, 0
mov dword [ebp - 0x224], ecx
je 0x414916
mov eax, 1
jmp 0x414926
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x224]
mov edx, eax
xor eax, eax
cmp dword [esi + 0x890], 0
mov dword [ebp - 0x240], edx
mov dword [esi + 0x884], eax
je 0x414973
test edi, edi
je 0x414973
and ecx, 1
xor eax, eax
or eax, ecx
jne 0x414973
mov eax, dword [esi + 0x8c8]
test al, 0x10
jne 0x414973
mov ecx, dword [esi + 0x8cc]
test cl, 0x10
jne 0x414973
test eax, 0x400
je 0x414973
test ecx, 0x400
je 0x414973
mov eax, 0x1000000
jmp 0x414975
xor eax, eax
mov ecx, dword [esi + 0x6b0]
mov dword [esi + 0x894], eax
mov eax, dword [ebp - 0x22c]
cmp dword [eax], 0
jne 0x41498f
shr ecx, 2
mov edi, dword [esi + 0x8bc]
mov eax, ecx
cdq
test edx, edx
jg 0x4149a4
jl 0x4149a2
cmp eax, edi
jae 0x4149a4
mov edi, ecx
mov edx, dword [esi + 0x6a0]
mov eax, 0x40000
cmp edi, eax
mov dword [esi + 0x878], edx
cmovb edi, eax
mov eax, dword [esi + 0x8c4]
and edi, 0xfffc0000
cmp edi, eax
mov dword [esi + 0x8bc], edi
mov ecx, edi
cmovae ecx, eax
mov eax, dword [esi + 0x8c0]
cmp edi, eax
mov dword [esi + 0x8c4], ecx
mov ecx, dword [esi + 0x6a4]
cmovae edi, eax
mov dword [esi + 0x87c], ecx
mov eax, dword [esi + 0x8c8]
mov dword [esi + 0x8c0], edi
test al, 5
je 0x414a13
test al, 0x10
jne 0x414a13
push dword [esi + 0x8cc]
call fcn.00412aa0
test eax, eax
jne 0x414a35
test ecx, ecx
jg 0x414a35
jl 0x414a21
cmp edx, 0x2710
jae 0x414a35
mov dword [esi + 0x878], 0x2710
mov dword [esi + 0x87c], 0
mov ecx, esi
call fcn.00414060
mov ecx, dword [esi + 0x694]
xor eax, eax
and ecx, 2
or eax, ecx
je 0x414a52
mov eax, 1
jmp 0x414a54
xor eax, eax
push eax
push dword [esi + 0x8b8]
push dword [esi + 0x8b0]
push dword [esi + 0x8ac]
push dword [esi + 0x8a8]
push dword [esi + 0x8a4]
push str.srcSector_d__d__dstSector_d__d_memAlign_d__wtrunc_d_n
call fcn.00459e20
mov edi, dword [ebp - 0x24c]
add esp, 0x1c
mov esi, 1
jmp 0x414ab1
mov ecx, dword [esi + 0x848]
mov eax, dword [esi + 0x830]
push dword [ebp - 0x244]
lea eax, [eax + ecx*2]
push eax
push 0x4afbc4
mov ecx, esi
call fcn.00419420
xor esi, esi
test edi, edi
je 0x414abe
push edi
call fcn.0047d4ed
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047d39f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8