Function at 0x409509
Capabilities:
Create thread
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c4
push ebx
push esi
push edi
xor edi, edi
push 0x104
lea eax, [ebp - 0x210]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.004189f0
mov eax, dword [ebp + 0x10]
add esp, 0xc
cmp byte [eax], 0x2f
je 0x40953f
push eax
push 0x42c85c
jmp 0x409548
push eax
mov byte [eax], 0x5c
push 0x42c858
lea eax, [ebp - 0x10c]
push eax
call fcn.00418f47
add esp, 0xc
lea eax, [ebp - 0x10c]
xor esi, esi
xor ebx, ebx
push eax
call fcn.00418970
test eax, eax
pop ecx
jbe 0x4095e3
mov dword [ebp + 0x10], 2
lea eax, [ebp - 0x10c]
push eax
call fcn.00418970
cmp dword [ebp + 0x10], eax
pop ecx
jae 0x4095b3
cmp byte [ebp + esi - 0x10c], 0x25
jne 0x4095b3
cmp byte [ebp + esi - 0x10b], 0x32
jne 0x4095b3
cmp byte [ebp + esi - 0x10a], 0x30
jne 0x4095b3
inc esi
mov byte [ebp + ebx - 0x210], 0x20
inc esi
add dword [ebp + 0x10], 2
jmp 0x4095cd
mov al, byte [ebp + esi - 0x10c]
cmp al, 0x2f
jne 0x4095c3
push 0x5c
pop eax
jmp 0x4095c6
movsx eax, al
mov byte [ebp + ebx - 0x210], al
lea eax, [ebp - 0x10c]
inc esi
inc dword [ebp + 0x10]
push eax
inc ebx
call fcn.00418970
cmp esi, eax
pop ecx
jb 0x409573
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x314]
push dword [ebp + 0xc]
push 0x42bc80
push eax
call fcn.00418f47
lea eax, [ebp - 0x314]
push 0x42ba70
push eax
call fcn.00419ff8
add esp, 0x18
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
cmp eax, 0x10
pop esi
je 0x409631
cmp eax, 0xffffffff
jne 0x409634
push dword [ebp + 8]
jmp 0x4096b0
mov dword [ebp - 4], esi
cmp byte [ebp + ebx - 0x211], 0x5c
jne 0x409641
mov dword [ebp - 4], esi
mov ebx, dword [ebp + 8]
cmp dword [ebp - 4], edi
mov dword [ebp - 0x6c4], ebx
mov dword [ebp - 0x318], edi
je 0x4096bb
cmp dword [ebp + 0x14], edi
je 0x4096af
lea eax, [ebp - 0x314]
push 0x42c854
push eax
call fcn.004190e0
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x640]
push eax
call fcn.00418f47
lea eax, [ebp - 0x210]
push eax
call fcn.00409ef8
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x53c]
push eax
call fcn.00418f47
add esp, 0x1c
or dword [ebp - 0x330], 0xffffffff
mov dword [ebp - 0x31c], esi
jmp 0x40970a
push ebx
call dword [fcn.004422e0]
jmp 0x4097b2
push edi
push edi
push 3
push edi
push esi
lea eax, [ebp - 0x314]
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40970a
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x640]
push eax
call fcn.00418f47
pop ecx
mov dword [ebp - 0x31c], edi
pop ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 0x330], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 0x8c4]
push esi
push 0x42c824
push eax
call fcn.00418f47
push edi
lea eax, [ebp - 0x8c4]
push 3
push eax
call fcn.00417ed1
mov dword [ebp - 0x32c], eax
imul eax, eax, 0x234
add esp, 0x18
mov dword [eax + 0x443bdc], esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x6c4]
push edi
push eax
push 0x409387
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x32c]
imul ecx, ecx, 0x234
cmp eax, edi
mov dword [ecx + 0x443bec], eax
je 0x409784
cmp dword [ebp - 0x318], edi
jne 0x4097b2
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409772
push ebx
call dword [fcn.004422e0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x8c4]
push 0x42c7ec
push eax
call fcn.00418f47
lea eax, [ebp - 0x8c4]
push eax
call fcn.00405616
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret