Function at 0x45cd5c
Capabilities:
Get file attributes

Disassembly:
push 0x318
mov eax, 0x4691bf
call fcn.00461a9f
mov dword [ebp - 0x314], ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28c]
mov ebx, dword [ebp + 0x10]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x310], eax
mov dword [ebp - 0x318], ebx
movlpd qword [ebp - 0x28c], xmm0
call fcn.0045c2b5
and dword [ebp - 4], 0
lea edi, [ebp - 0x2f0]
push 7
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x2f0]
call fcn.0045e3c7
mov edi, dword [ebp - 0x310]
lea eax, [ebp - 0x308]
push esi
push edi
push eax
mov byte [ebp - 4], 2
call fcn.0040d700
add esp, 0xc
cmp dword [ebp - 0x2f4], 8
lea eax, [ebp - 0x308]
lea ecx, [ebp - 0x2f0]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x308]
push eax
call fcn.0045e4a1
test al, al
jne 0x45ce3d
lea ecx, [ebp - 0x308]
call fcn.00402310
lea ecx, [ebp - 0x2f0]
call fcn.0045e3d7
push dword [ebp - 0x28c]
lea eax, [ebp - 0x28c]
push eax
call fcn.0045c221
push 0x20
push dword [ebp - 0x28c]
call fcn.00402740
add esp, 0x10
xor al, al
call fcn.004619f1
ret 0x10
lea ecx, [ebp - 0x2f0]
call fcn.0045e461
mov dword [ebp - 0x31c], eax
test eax, eax
je 0x45d528
cmp dword [eax + 0xc], 0
je 0x45d528
push dword [eax + 0xc]
lea ecx, [ebp - 0x2f0]
call fcn.0045e5d1
mov edx, eax
test edx, edx
je 0x45d3f5
cmp byte [edx], 0
je 0x45d3f5
xor eax, eax
mov dword [ebp - 0x2a8], 0xf
mov ecx, edx
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2bc], al
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45cea4
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2bc]
call fcn.0040d2a0
lea eax, [ebp - 0x2bc]
mov byte [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.0042f3d8
cmp dword [ebx], eax
je 0x45cf2c
mov eax, dword [ebp - 0x2a8]
mov byte [ebp - 4], 3
cmp eax, 0x10
jb 0x45d3f5
mov ecx, dword [ebp - 0x2bc]
inc eax
mov dword [ebp - 0x30c], eax
mov dword [ebp - 0x284], ecx
cmp eax, 0x1000
jb 0x45cf1e
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00402710
mov eax, dword [ebp - 0x30c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x284]
push eax
push ecx
call fcn.00461bf2
pop ecx
pop ecx
jmp 0x45d3f5
lea eax, [ebp - 0x2bc]
mov ecx, ebx
push eax
lea eax, [ebp - 0x324]
push eax
call fcn.0045c0d0
cmp dword [ebp - 0x2a8], 0x10
lea eax, [ebp - 0x2bc]
lea ecx, [ebp - 0x178]
cmovae eax, dword [ebp - 0x2bc]
push 3
mov dword [ebp - 0x17c], ecx
lea ecx, [ebp - 0x17c]
push eax
call fcn.0042fb0c
and dword [ebp - 0x2a4], 0
lea ecx, [ebp - 0x2a4]
push dword [ebp - 0x17c]
and dword [ebp - 0x294], 0
xor eax, eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x290], 7
mov word [ebp - 0x2a4], ax
call fcn.0040d1c0
lea eax, [ebp - 0x178]
mov byte [ebp - 4], 7
cmp dword [ebp - 0x17c], eax
je 0x45cfc4
push dword [ebp - 0x17c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x2d4]
push edi
push eax
call fcn.0045c06f
add esp, 0xc
cmp dword [ebp - 0x2c0], 8
lea eax, [ebp - 0x2d4]
mov byte [ebp - 4], 8
cmovae eax, dword [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp - 0x290]
lea esi, [ebp - 0x2a4]
mov edx, dword [ebp - 0x2a4]
cmp ecx, 8
mov ebx, eax
cmovae esi, edx
mov dword [ebp - 0x284], ebx
test esi, esi
je 0x45d103
push esi
push 0x103
lea eax, [ebp - 0x280]
push eax
call fcn.0045c76d
lea eax, [ebp - 0x280]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsupr_s]
push 6
pop ecx
mov esi, str.API_MS_WIN_
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov esi, str.MSVCP140
lea edi, [ebp - 0x28]
push 6
pop ecx
push 6
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, str.VCRUNTIME140
lea edi, [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
pop ecx
push 0xb
push eax
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x280]
mov esi, str.UCRTBASE.DLL
lea edi, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0x14
test eax, eax
je 0x45d18a
push 8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x45d18a
push 0xc
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x45d18a
push 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x45d18a
mov ecx, dword [ebp - 0x290]
mov edx, dword [ebp - 0x2a4]
cmp ecx, 8
lea eax, [ebp - 0x2a4]
cmovae eax, edx
test eax, eax
je 0x45d313
push eax
push 0x103
lea eax, [ebp - 0x280]
push eax
call fcn.0045c76d
lea eax, [ebp - 0x280]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsupr_s]
pop ecx
pop ecx
push 0x17
pop ebx
xor esi, esi
lea eax, [esi + ebx]
cdq
lea ecx, [ebp - 0x280]
sub eax, edx
mov edi, eax
sar edi, 1
mov edx, dword [edi*4 + 0x4b5800]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x45d2ea
test ax, ax
je 0x45d183
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x45d2ea
add ecx, 4
add edx, 4
test ax, ax
jne 0x45d159
xor ecx, ecx
jmp 0x45d2ef
cmp ebx, 0xffffffff
jne 0x45d29b
cmp dword [ebp - 0x290], 8
lea eax, [ebp - 0x2a4]
cmovae eax, dword [ebp - 0x2a4]
push eax
call fcn.00457f2b
pop ecx
test al, al
jne 0x45d31c
lea ecx, [ebp - 0x2d4]
call fcn.00402310
mov eax, dword [ebp - 0x290]
cmp eax, 8
jb 0x45d216
mov ecx, dword [ebp - 0x2a4]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x30c], ecx
cmp eax, 0x1000
jb 0x45d20d
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.00402710
mov eax, dword [ebp - 0x284]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30c]
push eax
push ecx
call fcn.00461bf2
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x290], 7
mov word [ebp - 0x2a4], ax
xor ebx, ebx
mov eax, dword [ebp - 0x2a8]
mov dword [ebp - 0x294], ebx
cmp eax, 0x10
jb 0x45d280
mov ecx, dword [ebp - 0x2bc]
inc eax
mov dword [ebp - 0x30c], ecx
mov dword [ebp - 0x284], eax
cmp eax, 0x1000
jb 0x45d277
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.00402710
mov eax, dword [ebp - 0x284]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30c]
push eax
push ecx
call fcn.00461bf2
pop ecx
pop ecx
mov dword [ebp - 0x2ac], ebx
mov dword [ebp - 0x2a8], 0xf
mov byte [ebp - 0x2bc], bl
jmp 0x45cdfb
cmp dword [ebp + 0x14], 0
jne 0x45d31c
cmp dword [ebp - 0x2c0], 8
lea eax, [ebp - 0x2d4]
mov ecx, dword [ebp - 0x314]
cmovae eax, dword [ebp - 0x2d4]
push str.Microsoft_Corporation
push 1
push eax
call fcn.0045c9d5
test al, al
je 0x45d1b6
lea eax, [ebp - 0x2a4]
push eax
push dword [ebp - 0x28c]
lea ecx, [ebp - 0x28c]
call fcn.0045c158
jmp 0x45d31c
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x45d409
lea eax, [edi + 1]
cmovns esi, eax
lea eax, [edi - 1]
cmovns eax, ebx
mov ebx, eax
cmp esi, ebx
jle 0x45d142
mov ebx, dword [ebp - 0x284]
cmp ebx, 0xffffffff
jne 0x45d1b6
lea ecx, [ebp - 0x2d4]
call fcn.00402310
mov eax, dword [ebp - 0x290]
cmp eax, 8
jb 0x45d37c
mov ecx, dword [ebp - 0x2a4]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x30c], ecx
cmp eax, 0x1000
jb 0x45d373
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.00402710
mov eax, dword [ebp - 0x284]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30c]
push eax
push ecx
call fcn.00461bf2
pop ecx
pop ecx
and dword [ebp - 0x294], 0
xor eax, eax
mov word [ebp - 0x2a4], ax
mov eax, dword [ebp - 0x2a8]
mov dword [ebp - 0x290], 7
mov byte [ebp - 4], 3
cmp eax, 0x10
jb 0x45d3e9
mov ecx, dword [ebp - 0x2bc]
inc eax
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x30c], ecx
cmp eax, 0x1000
jb 0x45d3e0
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.00402710
mov eax, dword [ebp - 0x284]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30c]
push eax
push ecx
call fcn.00461bf2
pop ecx
pop ecx
mov edi, dword [ebp - 0x310]
mov ebx, dword [ebp - 0x318]
mov eax, dword [ebp - 0x31c]
add eax, 0x14
mov dword [ebp - 0x31c], eax
jmp 0x45ce56
cmp dword [ebp - 0x284], 0xffffffff
je 0x45d1b6
cmp dword [ebp - 0x2c0], 8
lea eax, [ebp - 0x2d4]
mov ecx, dword [ebp - 0x314]
cmovae eax, dword [ebp - 0x2d4]
push 0
push 1
push eax
call fcn.0045c9d5
test al, al
jne 0x45d2d0
lea ecx, [ebp - 0x2d4]
call fcn.00402310
mov eax, dword [ebp - 0x290]
cmp eax, 8
jb 0x45d4a2
mov ecx, dword [ebp - 0x2a4]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x30c], ecx
cmp eax, 0x1000
jb 0x45d499
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.00402710
mov eax, dword [ebp - 0x284]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30c]
push eax
push ecx
call fcn.00461bf2
pop ecx
pop ecx
and dword [ebp - 0x294], 0
xor eax, eax
mov word [ebp - 0x2a4], ax
mov eax, dword [ebp - 0x2a8]
mov dword [ebp - 0x290], 7
cmp eax, 0x10
jb 0x45d50b
mov ecx, dword [ebp - 0x2bc]
inc eax
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x30c], ecx
cmp eax, 0x1000
jb 0x45d502
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.00402710
mov eax, dword [ebp - 0x284]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30c]
push eax
push ecx
call fcn.00461bf2
pop ecx
pop ecx
and dword [ebp - 0x2ac], 0
mov dword [ebp - 0x2a8], 0xf
mov byte [ebp - 0x2bc], 0
jmp 0x45cdfb
lea ecx, [ebp - 0x308]
call fcn.00402310
mov eax, dword [ebp - 0x28c]
mov dword [ebp - 4], 1
mov esi, dword [eax]
cmp esi, eax
je 0x45d57a
mov edi, dword [ebp + 0x14]
lea eax, [esi + 8]
cmp dword [eax + 0x14], 8
jb 0x45d554
mov eax, dword [eax]
mov ecx, dword [ebp - 0x314]
push edi
push ebx
push dword [ebp - 0x310]
push eax
call fcn.0045cd5c
test al, al
je 0x45ce06
mov esi, dword [esi]
cmp esi, dword [ebp - 0x28c]
jne 0x45d549
lea ecx, [ebp - 0x2f0]
call fcn.0045e3d7
push dword [ebp - 0x28c]
lea eax, [ebp - 0x28c]
push eax
call fcn.0045c221
push 0x20
push dword [ebp - 0x28c]
call fcn.00402740
add esp, 0x10
mov al, 1
jmp 0x45ce35