Function at 0x414c90
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 0x4a6758
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x238
mov eax, dword [0x4db06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebx + 0xc]
push 0x10002
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], 0xffffffff
call fcn.00487989
mov esi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x240], esi
mov word [esi], ax
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], eax
cmp ecx, dword [edi + 0x7d4]
jge 0x414d2e
mov eax, dword [edi + 0x7d8]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x10]
jmp 0x414d30
xor ecx, ecx
cmp dword [edi + 0xe84], 0
mov dword [ebp - 0x228], ecx
jne 0x414d4f
cmp dword [edi + 0xe88], 0
jne 0x414d4f
mov edx, 1
jmp 0x414d51
xor edx, edx
cmp dword [ebp - 0x238], 0
mov dword [ebp - 0x224], edx
je 0x414d76
mov esi, dword [ebp - 0x238]
mov eax, dword [edi + 0x1014]
mov dword [esi], eax
mov esi, dword [ebp - 0x240]
jmp 0x414d82
lea eax, [edi + 0x1014]
mov dword [ebp - 0x238], eax
cmp word [ecx + 2], 0x3a
jne 0x414d90
cmp word [ecx + 4], 0x5c
jne 0x414daa
mov eax, dword [edi + 0x8e4]
test eax, eax
je 0x414da4
cmp word [eax], 0
je 0x414da4
xor al, al
jmp 0x414da6
mov al, 1
test al, al
je 0x414dbf
or edx, 2
push edx
push ecx
mov ecx, 0x3c
call fcn.0045fe50
push eax
jmp 0x415696
lea eax, [ebp - 0x234]
push eax
push dword [edi + 0x840]
push 0x8000
push ecx
call dword [sym.imp.KERNEL30.dll_GetFullPathNameW]
test eax, eax
jne 0x414df2
push dword [ebp - 0x224]
push dword [ebp - 0x228]
push str.GetFullPathName
jmp 0x415696
mov ecx, dword [edi + 0x840]
mov edx, ecx
call fcn.00464ef0
mov ecx, dword [edi + 0x840]
lea edx, [ebp - 0x220]
call fcn.0045c7b0
mov ecx, dword [edi + 0x840]
mov edx, ecx
call fcn.00464df0
push dword [edi + 0x840]
mov dword [edi + 0x858], eax
mov dword [ebp - 0x228], 0
call dword [sym.imp.KERNEL30.dll_GetFileAttributesW]
mov dword [ebp - 0x230], eax
cmp eax, 0xffffffff
je 0x414f14
test al, 0x10
je 0x414f14
mov edx, dword [edi + 0x840]
mov ecx, esi
mov eax, 0x7fff
nop dword [eax]
movzx esi, word [edx]
test si, si
je 0x414e76
mov word [ecx], si
dec eax
add ecx, 2
add edx, 2
test eax, eax
jg 0x414e60
mov esi, dword [ebp - 0x240]
xor eax, eax
mov word [ecx], ax
mov edx, esi
mov ecx, dword [edi + 0x840]
push SysReAllocString
push 0x4c17a4
call fcn.00462880
mov ecx, dword [edi + 0x858]
xor eax, eax
cmp ecx, 7
mov edx, 2
cmove eax, edx
lea edx, [ebp - 0x220]
add eax, edx
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.004958b1
add esp, 0x10
test eax, eax
je 0x414f14
cmp dword [edi + 0x860], 0
jne 0x414ede
push dword [ebp - 0x230]
mov ecx, edi
call fcn.00412f80
test al, al
je 0x414f14
mov edx, dword [edi + 0x840]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x228], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414ef0
sub ecx, dword [ebp - 0x228]
sar ecx, 1
xor eax, eax
mov dword [ebp - 0x228], 1
mov word [edx + ecx*2 - 4], ax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x23c], 0xffffffff
push eax
push esi
push 0x8000
push dword [edi + 0x840]
call dword [sym.imp.KERNEL30.dll_GetFullPathNameW]
test eax, eax
je 0x41567b
mov edx, dword [ebp - 0x234]
test edx, edx
je 0x41567b
mov eax, dword [edi + 0x694]
cmp eax, 9
je 0x415000
cmp eax, 0xa
je 0x415000
mov ecx, dword [edi + 0x854]
mov eax, dword [edi + 0x848]
lea ecx, [eax + ecx*2]
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x414f74
push dword [edi + 0x848]
push esi
call fcn.004958b1
add esp, 8
test eax, eax
jne 0x414ff0
cmp dword [edi + 0x694], 1
jne 0x414fce
mov eax, dword [edi + 0x6a0]
and eax, 0x10
or eax, 0
je 0x414fce
mov ecx, dword [edi + 0x854]
mov eax, dword [edi + 0x848]
mov dword [eax + ecx*2], 0x2a
mov dword [edi + 0x1018], 1
jmp 0x414ffa
mov ecx, dword [edi + 0x854]
mov eax, dword [edi + 0x848]
push 3
lea eax, [eax + ecx*2]
mov ecx, 0x2f
push eax
call fcn.0045fe50
push eax
jmp 0x415696
mov dword [edi + 0x1018], 0
mov edx, dword [ebp - 0x234]
cmp dword [edi + 0x694], 5
jne 0x4150c6
mov ecx, dword [ebp - 0x230]
mov eax, ecx
and eax, 0x410
cmp eax, 0x10
jne 0x4150c6
cmp word [edx], 0x2a
mov eax, dword [edi + 0x848]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x230], 0
je 0x415044
cmp ecx, 0xffffffff
jne 0x415053
xor eax, eax
mov dword [ebp - 0x230], 1
mov word [edx], ax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x415056
sub esi, ecx
sar esi, 1
push esi
push dword [ebp - 0x224]
push dword [ebp - 0x240]
call fcn.00495a26
add esp, 0xc
test eax, eax
jne 0x4150ba
sub esi, dword [ebp - 0x230]
mov eax, dword [ebp - 0x224]
movzx eax, word [eax + esi*2]
test ax, ax
je 0x415098
cmp eax, 0x5c
jne 0x4150ba
mov eax, dword [edi + 0x858]
mov ecx, dword [ebp - 0x240]
push 3
lea eax, [ecx + eax*2]
mov ecx, 0x30
push eax
call fcn.0045fe50
push eax
jmp 0x415696
mov edx, dword [ebp - 0x234]
mov esi, dword [ebp - 0x240]
mov eax, dword [ebp - 0x228]
test eax, eax
jne 0x4150d5
xor ecx, ecx
mov word [edx], cx
push dword [ebp - 0x22c]
mov ecx, edi
push eax
push esi
call fcn.00416250
test eax, eax
je 0x41569d
mov eax, dword [ebp - 0x234]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x240]
call fcn.00411eb0
mov ecx, dword [ebp - 0x22c]
mov dword [edi + 0x850], eax
mov eax, dword [edi + 0xb74]
sub eax, dword [edi + 0xb70]
sar eax, 2
mov dword [ebp - 0x224], eax
cmp eax, ecx
ja 0x415275
nop dword [eax + eax]
push 0x10
call fcn.00487959
mov esi, eax
add esp, 4
mov dword [ebp - 0x244], esi
mov byte [ebp - 4], 1
xorps xmm0, xmm0
push 0
movups xmmword [esi], xmm0
push 0
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call fcn.00411ee0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [ebp - 0x230], esi
lea ecx, [edi + 0xb70]
mov byte [ebp - 4], 2
mov edx, dword [ecx + 4]
cmp dword [ecx + 8], edx
je 0x41519a
mov eax, dword [ebp - 0x244]
xor esi, esi
mov dword [edx], eax
add dword [ecx + 4], 4
jmp 0x4151ad
lea eax, [ebp - 0x230]
push eax
push edx
call fcn.0041c420
mov esi, dword [ebp - 0x230]
mov byte [ebp - 4], 0
test esi, esi
je 0x4151dc
mov eax, dword [esi]
test eax, eax
je 0x4151ca
push eax
call fcn.00487954
add esp, 4
mov dword [esi], 0
push 0x10
push esi
mov dword [esi + 4], 0xffffffff
call fcn.00487923
add esp, 8
mov ecx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x22c]
cmp ecx, eax
jne 0x415260
mov eax, dword [edi + 0xb70]
lea edx, [eax + ecx*4]
mov eax, dword [edi + 0x858]
mov ecx, dword [edx]
mov dword [ecx + 8], eax
mov eax, dword [edx]
mov ecx, dword [ebp - 0x228]
mov dword [eax + 0xc], ecx
mov esi, dword [edx]
mov eax, dword [ebp - 0x240]
mov dword [esi + 4], 0xffffffff
test eax, eax
je 0x415222
cmp eax, dword [esi]
je 0x415254
mov ecx, dword [esi]
test ecx, ecx
je 0x41523d
push ecx
call fcn.00487954
mov eax, dword [ebp - 0x240]
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
test eax, eax
je 0x415254
or edx, 0xffffffff
mov ecx, eax
call fcn.00412580
mov dword [esi], eax
mov ecx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x22c]
inc ecx
mov dword [ebp - 0x224], ecx
cmp ecx, eax
jbe 0x415130
mov ecx, dword [ebp - 0x22c]
mov eax, dword [edi + 0xb88]
mov esi, dword [eax + ecx*4]
lea eax, [ebp - 0x220]
push eax
lea ecx, [esi + 0x68]
call fcn.00411cc0
test al, al
jne 0x41554a
mov eax, dword [esi + 0x68]
lea ecx, [ebp - 0x220]
mov dword [esi + 0x6c], 0xffffffff
cmp ecx, eax
je 0x4152d5
test eax, eax
je 0x4152bd
push eax
call fcn.00487954
add esp, 4
mov dword [esi + 0x68], 0
or edx, 0xffffffff
mov dword [esi + 0x6c], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.00412580
mov dword [esi + 0x68], eax
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.004145f0
mov dword [edi + 0x8d8], eax
lea esi, [edi + 0x8b8]
push esi
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.00414810
mov ecx, dword [edi + 0x8bc]
cmp eax, ecx
mov dword [edi + 0x8b4], eax
cmova ecx, eax
mov eax, dword [edi + 0x8c0]
mov dword [edi + 0x8c4], ecx
mov ecx, dword [esi]
cmp ecx, eax
cmovbe ecx, eax
mov eax, 0x1000
cmp ecx, eax
cmovb ecx, eax
mov eax, dword [edi + 0x6a4]
mov dword [ebp - 0x244], eax
mov dword [edi + 0x8c8], ecx
mov ecx, dword [edi + 0x6a0]
mov eax, ecx
and eax, 0x40
or eax, 0
je 0x41535c
mov eax, dword [ebp - 0x238]
mov dword [eax], 1
jmp 0x41539d
and ecx, 0x80
or ecx, 0
je 0x415375
mov eax, dword [ebp - 0x238]
mov dword [eax], 0
jmp 0x41539d
mov eax, dword [edi + 0x8e4]
mov ecx, 0x4c1430
test eax, eax
cmovne ecx, eax
lea eax, [ebp - 0x220]
push ecx
push eax
lea ecx, [edi + 0x28]
call fcn.0045c620
mov ecx, dword [ebp - 0x238]
mov dword [ecx], eax
test dword [edi + 0x8d8], 0x100
je 0x4153d4
test dword [edi + 0x8dc], 0x100
je 0x4153d4
mov edx, dword [edi + 0x6a0]
mov eax, edx
mov ecx, dword [edi + 0x6a4]
and eax, 0x200
or eax, 0
je 0x4153d4
mov esi, 1
jmp 0x4153e2
mov edx, dword [edi + 0x6a0]
xor esi, esi
mov ecx, dword [edi + 0x6a4]
test dword [edi + 0x8d8], 0x200
mov eax, edx
mov dword [edi + 0x890], esi
mov dword [ebp - 0x228], ecx
je 0x415431
test dword [edi + 0x8dc], 0x200
mov dword [ebp - 0x228], ecx
je 0x415431
and eax, 0x400
mov dword [ebp - 0x244], edx
or eax, 0
mov dword [ebp - 0x228], ecx
je 0x41542b
mov eax, 1
jmp 0x41543b
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x228]
mov edx, eax
xor eax, eax
cmp dword [edi + 0x8a0], 0
mov dword [ebp - 0x248], edx
mov dword [edi + 0x894], eax
je 0x415488
test esi, esi
je 0x415488
and ecx, 1
xor eax, eax
or eax, ecx
jne 0x415488
mov eax, dword [edi + 0x8d8]
test al, 0x10
jne 0x415488
mov ecx, dword [edi + 0x8dc]
test cl, 0x10
jne 0x415488
test eax, 0x400
je 0x415488
test ecx, 0x400
je 0x415488
mov eax, 0x1000000
jmp 0x41548a
xor eax, eax
mov ecx, dword [edi + 0x6c0]
mov dword [edi + 0x8a4], eax
mov eax, dword [ebp - 0x238]
cmp dword [eax], 0
jne 0x4154a4
shr ecx, 2
mov esi, dword [edi + 0x8cc]
mov eax, ecx
cdq
test edx, edx
jg 0x4154b9
jl 0x4154b7
cmp eax, esi
jae 0x4154b9
mov esi, ecx
mov edx, dword [edi + 0x6b0]
mov eax, 0x40000
cmp esi, eax
mov dword [edi + 0x888], edx
cmovb esi, eax
mov eax, dword [edi + 0x8d4]
and esi, 0xfffc0000
cmp esi, eax
mov dword [edi + 0x8cc], esi
mov ecx, esi
cmovae ecx, eax
mov eax, dword [edi + 0x8d0]
cmp esi, eax
mov dword [edi + 0x8d4], ecx
mov ecx, dword [edi + 0x6b4]
cmovae esi, eax
mov dword [edi + 0x88c], ecx
mov eax, dword [edi + 0x8d8]
mov dword [edi + 0x8d0], esi
test al, 5
je 0x415528
test al, 0x10
jne 0x415528
push dword [edi + 0x8dc]
call fcn.00412fe0
test eax, eax
jne 0x41554a
test ecx, ecx
jg 0x41554a
jl 0x415536
cmp edx, 0x2710
jae 0x41554a
mov dword [edi + 0x888], 0x2710
mov dword [edi + 0x88c], 0
test byte [edi + 0xb64], 0xf
je 0x415630
cmp dword [edi + 0xb9c], 0
je 0x415630
mov dword [edi + 0xbb0], 0
mov dword [edi + 0xba0], 0
mov dword [edi + 0xbe8], 0
mov dword [edi + 0xbd8], 0
cmp dword [edi + 0xbb0], 1
jae 0x4155d0
cmp dword [edi + 0xb9c], 4
jae 0x4155bc
cmp dword [edi + 0xba4], 4
jb 0x4155d0
push dword [edi + 0xbac]
lea ecx, [edi + 0xb98]
call fcn.0045ed40
test eax, eax
je 0x4155d0
mov dword [edi + 0xba0], 4
mov dword [edi + 0xbb0], 1
mov ecx, dword [edi + 0xb98]
mov eax, dword [edi + 0x850]
mov dword [ecx], eax
cmp dword [edi + 0xbe8], 1
jae 0x415622
cmp dword [edi + 0xbd4], 4
jae 0x41560e
cmp dword [edi + 0xbdc], 4
jb 0x415622
push dword [edi + 0xbe4]
lea ecx, [edi + 0xbd0]
call fcn.0045ed40
test eax, eax
je 0x415622
mov dword [edi + 0xbd8], 4
mov dword [edi + 0xbe8], 1
mov ecx, dword [edi + 0xbd0]
mov eax, dword [edi + 0x854]
mov dword [ecx], eax
mov ecx, dword [edi + 0x6a4]
xor eax, eax
and ecx, 2
or eax, ecx
je 0x415646
mov eax, 1
jmp 0x415648
xor eax, eax
push eax
push dword [edi + 0x8c8]
push dword [edi + 0x8c0]
push dword [edi + 0x8bc]
push dword [edi + 0x8b8]
push dword [edi + 0x8b4]
push str.srcSector_d__d__dstSector_d__d_memAlign_d__wtrunc_d_n
call fcn.0045f780
add esp, 0x1c
mov esi, 1
jmp 0x41569f
mov ecx, dword [edi + 0x858]
mov eax, dword [edi + 0x840]
push dword [ebp - 0x224]
lea eax, [eax + ecx*2]
push eax
push 0x4c17a8
mov ecx, edi
call fcn.0041a620
xor esi, esi
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x4156b2
push eax
call fcn.00487954
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.00487555
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8