Function at 0x41d1f0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8ac
mov eax, dword [0x479a50]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x8b0], eax
mov eax, dword [esi + 4]
push edi
xor edi, edi
cmp eax, edi
je 0x41d323
mov eax, dword [esi + 0x114]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
inc eax
mov dword [esi + 0x114], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x154]
push ecx
call ebx
lea edx, [esp + 0x150]
push edx
mov ecx, esi
call fcn.0041cdf0
lea eax, [esp + 0x150]
push eax
mov dword [esp + 0x44], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x154]
push edx
mov ecx, esi
mov dword [esp + 0x4c], eax
call fcn.0041ce60
movzx ecx, word [esp + 0x16]
movzx eax, word [esp + 0x14]
movzx edx, word [esp + 0x1a]
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 + 0x48], 0
mov ecx, 0x40
lea edi, [esp + 0x49]
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 0x41d303
lea eax, [esp + 0x258]
push eax
lea ecx, [esp + 0x4c]
push ecx
push 0
lea edx, [esp + 0x15c]
push 0
push edx
call fcn.0043bd5d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x14
lea eax, [esp + 0x258]
push eax
lea ecx, [esp + 0x4c]
push ecx
call ebx
jmp 0x41d356
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [esp + 0x154]
push edi
push edx
call fcn.0043a1f9
add esp, 0xc
test eax, eax
je 0x41d33a
xor al, al
mov ecx, dword [esp + 0x8b4]
call fcn.00438707
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + eax + 0x150]
push eax
lea ecx, [esp + 0x4c]
push ecx
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x48]
push edx
mov ecx, esi
call fcn.0041cd60
lea edi, [esp + 0x48]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41d367
mov ax, word [0x460a78]
lea ecx, [esp + 0x48]
push ecx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x41d3b1
mov ecx, dword [esi + 4]
push 0xffffffffffffffff
push 8
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x68]
push eax
push ecx
call fcn.0042a810
mov edx, dword [esi + 4]
push edx
call fcn.0042ac40
lea eax, [esp + 0x5a8]
push eax
lea ecx, [esp + 0x7b4]
push ecx
lea edx, [esp + 0x368]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x160]
push ecx
call fcn.0043bd5d
add esp, 0x14
lea edx, [esp + 0x7b0]
push edx
lea eax, [esp + 0x364]
push eax
call ebx
lea ecx, [esp + 0x5a8]
push ecx
lea edx, [esp + 0x364]
push edx
call ebx
push 0x4610fc
push 0x4610fc
lea eax, [esp + 0x368]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x6b8]
push edx
call fcn.0043bccd
add esp, 0x14
lea eax, [esp + 0x468]
push eax
lea ecx, [esp + 0x6ac]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41d4ca
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp byte [esp + 0x494], 0x2e
je 0x41d4b4
push 0
lea edx, [esp + 0x498]
push edx
lea eax, [esp + 0x368]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x268]
push edx
call fcn.0043bccd
mov al, byte [esp + 0x47c]
add esp, 0x14
test al, 0x10
je 0x41d4a1
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x25c]
push ecx
mov ecx, esi
call fcn.0041d1f0
jmp 0x41d4b4
mov edx, dword [ebp + 0xc]
push edx
lea eax, [esp + 0x25c]
push eax
mov ecx, esi
call fcn.0041cf50
lea ecx, [esp + 0x468]
push ecx
push edi
call ebx
test eax, eax
jne 0x41d450
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x8b4]
mov al, 1
call fcn.00438707
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8