Function at 0x45a9a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x120
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push edi
mov edx, dword [ebp]
mov dword [ebp + 0x2c], 0xffffffff
cmp edx, ebx
je 0x45aa72
mov al, byte [0x4eb858]
mov ecx, 0x40
mov byte [esp + 0x28], al
xor eax, eax
lea edi, [esp + 0x29]
push 0x2e
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
stosb byte es:[edi], al
call fcn.004bea30
add esp, 8
cmp eax, ebx
je 0x45aa0f
push str..lnk
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x45aa0f
mov edx, dword [ebp]
push ebx
lea ecx, [esp + 0x2c]
push 0x10064
push ecx
push edx
push ebx
call fcn.004537e0
add esp, 0x14
cmp byte [esp + 0x28], bl
jne 0x45aa24
mov eax, dword [ebp]
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45aa47
mov dword [ebp + 0x28], 0x65
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.0046bd90
add esp, 0x18
jmp 0x45ab01
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x45aaa1
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push edx
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
call fcn.0046bf70
add esp, 0x1c
jmp 0x45ab01
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x45aad0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push edx
mov edx, dword [ebp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
call fcn.0046c000
add esp, 0x1c
jmp 0x45ab01
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x45ab16
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
push edx
push ecx
lea edx, [esp + 0x24]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
push ecx
push eax
call fcn.0046bec0
add esp, 0x20
test eax, eax
jne 0x45ab16
mov dword [ebp + 0x28], 7
pop edi
pop ebp
pop ebx
add esp, 0x120
ret
push esi
mov ecx, dword [ebp + 0x40]
xor eax, eax
mov ax, word [ebp + 0x30]
cmp eax, ecx
jge 0x45ab34
cmp eax, ebx
jl 0x45ab34
mov edx, dword [ebp + 0x3c]
cmp dword [edx + eax*4], ebx
jne 0x45abfa
push 0x1c
call fcn.004be967
add esp, 4
cmp eax, ebx
je 0x45ab7b
mov word [eax], bx
mov word [eax + 2], bx
mov word [eax + 4], bx
mov word [eax + 6], bx
mov byte [eax + 8], bl
mov byte [eax + 9], bl
mov byte [eax + 0xa], bl
mov byte [eax + 0xb], bl
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov byte [eax + 0x18], 1
mov byte [eax + 0x19], 1
mov byte [eax + 0x1a], 1
mov byte [eax + 0x1b], bl
mov dword [esp + 0x24], eax
jmp 0x45ab7f
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x24], ebx
je 0x45ab17
mov eax, dword [ebp + 0x44]
mov edx, dword [ebp + 0x40]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x45abe1
add eax, dword [ebp + 0x4c]
lea edx, [eax*4 + 4]
push edx
call fcn.004be967
mov ecx, dword [ebp + 0x44]
mov esi, dword [ebp + 0x3c]
mov edi, eax
mov dword [esp + 0x2c], eax
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x3c]
push eax
call fcn.004be975
mov edx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x44]
mov ecx, dword [esp + 0x30]
add esp, 8
add eax, edx
mov dword [ebp + 0x3c], ecx
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov edx, dword [esp + 0x24]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp + 0x40]
inc eax
mov dword [ebp + 0x40], eax
jmp 0x45ab17
mov eax, dword [ebp + 0x40]
pop esi
cmp eax, ebx
jle 0x45ac07
mov eax, dword [ebp + 0x3c]
mov ebx, dword [eax]
mov cx, word [esp + 0x18]
mov word [ebx], cx
mov dx, word [esp + 0x14]
mov word [ebx + 2], dx
mov al, byte [esp + 0x1c]
xor ecx, ecx
mov byte [ebx + 8], al
mov eax, dword [ebp + 0x40]
mov cx, word [ebp + 0x32]
cmp ecx, eax
jge 0x45ac30
mov word [ebp + 0x32], ax
mov edx, dword [esp + 0xc]
mov ax, word [esp + 0x10]
mov dword [ebp + 0x2c], edx
mov word [ebp + 0x32], ax
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x120
ret