Function at 0x413fb0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8a4
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
xor edi, edi
cmp eax, edi
je 0x4140d1
mov edx, dword [esi + 0x114]
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x4c]
inc edx
push ecx
mov dword [esi + 0x114], edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x48]
push edx
mov ecx, esi
call fcn.004138e0
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x44], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x4c]
push edx
mov ecx, esi
mov dword [esp + 0x4c], eax
call fcn.00413930
movzx ecx, word [esp + 0x16]
movzx eax, word [esp + 0x14]
movzx edx, word [esp + 0x1a]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
dec ecx
mov dword [esp + 0x38], eax
movzx eax, word [esp + 0x1c]
mov dword [esp + 0x34], ecx
movzx ecx, word [esp + 0x1e]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x28], ecx
mov byte [esp + 0x150], 0
mov ecx, 0x40
lea edi, [esp + 0x151]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x30], edx
movzx edx, word [esp + 0x20]
stosb byte es:[edi], al
mov al, byte [ebp + 0xc]
test al, al
mov dword [esp + 0x24], edx
je 0x4140b8
lea eax, [esp + 0x258]
push eax
lea ecx, [esp + 0x154]
push ecx
push 0
lea edx, [esp + 0x54]
push 0
push edx
call fcn.00425300
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x14
lea eax, [esp + 0x258]
push eax
lea ecx, [esp + 0x154]
push ecx
call edi
jmp 0x4140f8
lea edi, [esi + 8]
push edi
call ebx
push eax
lea edx, [esp + 0x4c]
push edi
push edx
call fcn.0042651e
add esp, 0xc
test eax, eax
je 0x4140dc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
call ebx
lea eax, [esp + eax + 0x48]
push eax
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x150]
push edx
mov ecx, esi
call fcn.00413860
lea eax, [esp + 0x150]
push eax
call ebx
test eax, eax
je 0x414142
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push 8
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x170]
push edx
push eax
call fcn.00416fb0
mov ecx, dword [esi + 4]
push ecx
call fcn.004173e0
lea edx, [esp + 0x5a8]
push edx
lea eax, [esp + 0x7b4]
push eax
lea ecx, [esp + 0x368]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.00425300
add esp, 0x14
lea ecx, [esp + 0x7b0]
push ecx
lea edx, [esp + 0x364]
push edx
call edi
lea eax, [esp + 0x5a8]
push eax
lea ecx, [esp + 0x364]
push ecx
call edi
push 0x46a100
push 0x46a100
lea edx, [esp + 0x368]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x6b8]
push ecx
call fcn.0042573d
add esp, 0x14
lea edx, [esp + 0x468]
push edx
lea eax, [esp + 0x6ac]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41425a
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, edi
cmp byte [esp + 0x494], 0x2e
je 0x414244
push 0
lea ecx, [esp + 0x498]
push ecx
lea edx, [esp + 0x368]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x268]
push ecx
call fcn.0042573d
mov al, byte [esp + 0x47c]
add esp, 0x14
test al, 0x10
je 0x414231
mov edx, dword [ebp + 0xc]
push edx
lea eax, [esp + 0x25c]
push eax
mov ecx, esi
call fcn.00413fb0
jmp 0x414244
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [esp + 0x25c]
push edx
mov ecx, esi
call fcn.004139f0
lea eax, [esp + 0x468]
push eax
push edi
call ebx
test eax, eax
jne 0x4141e0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8