Function at 0x407900
Capabilities:
Get file attributes
Get file size

Disassembly:
sub esp, 0x340
mov eax, dword [0x4b2a8c]
xor eax, esp
mov dword [esp + 0x33c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x34c]
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x244]
push ecx
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea esi, [ebp + ebp*8]
shl esi, 5
test eax, eax
je 0x40796c
lea ebx, [esi + 0x24b9010]
lea eax, [esp + 0x240]
mov edx, ebx
mov ecx, eax
mov dword [esp + 0x10], ebx
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407960
jmp 0x40798e
lea edx, [esi + 0x24b9010]
mov dword [esp + 0x10], edx
mov eax, edi
sub edx, edi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407980
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x358], 0
je 0x4079d5
mov edx, 0x80d3
cmp word [esp + 0x360], dx
jne 0x4079c8
push 0
push ebp
call fcn.004869b8
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x4079f7
mov dword [esp + 0x360], 0x8084
mov dword [esp + 0x358], 0
jmp 0x4079f7
mov eax, 0x80d3
cmp word [esp + 0x360], ax
jne 0x4079f7
push edi
call fcn.00407440
movzx ecx, ax
add esp, 4
mov dword [esp + 0x360], ecx
mov eax, dword [0x2611424]
mov ecx, dword [esp + 0x368]
mov dword [esi + 0x24b9118], eax
inc eax
mov dword [esi + 0x24b9114], 1
mov dword [0x2611424], eax
test ecx, ecx
jne 0x407a2f
cmp dword [esp + 0x36c], ecx
jne 0x407a2f
mov eax, dword [esp + 0x358]
jmp 0x407a31
xor eax, eax
cmp ebp, 0x14
mov edx, dword [esp + 0x35c]
mov dword [esi + 0x24b911c], eax
mov ax, word [esp + 0x360]
mov dword [esi + 0x24b9120], edx
mov dx, word [esp + 0x364]
mov word [esi + 0x24b9124], ax
mov eax, dword [esp + 0x36c]
mov word [esi + 0x24b9126], dx
mov dword [esi + 0x24b9128], ecx
mov dword [esi + 0x24b912c], eax
jge 0x407c59
mov edi, ebp
imul edi, edi, 0x3b
push 0x3b
add edi, 0x4b9f06
push 0
push edi
call fcn.0048f0e0
mov dx, word [esi + 0x24b9120]
add esp, 0xc
mov ecx, 1
push ebx
mov word [edi], cx
mov word [edi + 2], dx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov byte [edi + 4], al
movzx eax, word [esi + 0x24b9124]
movzx ecx, al
mov word [edi + 5], cx
test al, al
js 0x407b51
and eax, 0x1f
imul eax, eax, 0x3b
mov edx, 0x90
xor ebx, ebx
push ebp
mov word [edi + 7], ax
mov word [edi + 9], dx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call fcn.004869b8
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x407b38
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x407b2d
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov ax, word [esp + 0x14]
mov cx, word [esp + 0x18]
mov dword [edi + 0x11], ebx
mov ebx, dword [esp + 0x10]
mov word [edi + 0xd], ax
mov word [edi + 0xf], cx
push 0x103
lea edx, [esp + 0x35]
push 0
push edx
mov byte [esp + 0x3c], 0
call fcn.0048f0e0
push 0x103
lea eax, [esp + 0x149]
push 0
push eax
mov byte [esp + 0x150], 0
call fcn.0048f0e0
lea ecx, [esp + 0x150]
push ecx
lea edx, [esp + 0x4c]
push edx
push 0
push 0
push ebx
call fcn.004892be
lea eax, [esp + 0x5c]
push eax
call fcn.00485f27
lea ecx, [esp + 0x168]
push ecx
call fcn.00485f27
mov eax, 0x20202020
lea ecx, [edi + 0x20]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov word [ecx + 8], ax
mov byte [ecx + 0xa], al
lea eax, [esp + 0x64]
add esp, 0x34
lea esi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407bd0
sub eax, esi
cmp eax, 8
jae 0x407bf0
lea eax, [esp + 0x30]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407be5
sub eax, esi
jmp 0x407bf5
mov eax, 8
push eax
lea edx, [esp + 0x34]
push edx
push ecx
call fcn.004904e0
lea eax, [esp + 0x145]
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407c10
sub eax, edx
cmp eax, 3
jae 0x407c33
lea eax, [esp + 0x139]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407c28
sub eax, edx
jmp 0x407c38
mov eax, 3
push eax
lea eax, [esp + 0x13d]
push eax
lea ecx, [edi + 0x28]
push ecx
call fcn.004904e0
mov dx, word [esp + 0x370]
add esp, 0xc
mov word [edi + 0x31], dx
mov ecx, dword [esp + 0x34c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00482caa
add esp, 0x340
ret