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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42c63b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x448
mov eax, dword [0x43735c]
xor eax, ebp
test esi, esi
mov dword [esp + 0x440], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [esp + 0xc], eax
je 0x422766
mov ecx, dword [ebp + 8]
test ecx, ecx
jbe 0x422766
test ebx, ebx
je 0x422766
test eax, eax
je 0x422766
xor eax, eax
mov byte [esp + 0x338], 0
mov ecx, 0x40
lea edi, [esp + 0x339]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x33c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
ja 0x42259a
push 8
push 0x4302f0
lea ecx, [esp + 0x340]
push 0x104
push ecx
call fcn.00422b40
add esp, 0x10
lea ecx, [esp + 0x10]
call fcn.00422ab0
xor edx, edx
xor eax, eax
mov byte [esp + 0x238], dl
mov ecx, 0x3f
lea edi, [esp + 0x239]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x138], dl
mov ecx, 0x3f
lea edi, [esp + 0x139]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x30], dl
push edx
xor eax, eax
push edx
mov ecx, 0x40
lea edi, [esp + 0x39]
rep stosd dword es:[edi], eax
push 0x100
mov dword [esp + 0x460], edx
mov byte [esp + 0x14], dl
mov word [esp + 0x15], dx
stosw word es:[edi], ax
lea edx, [esp + 0x144]
push edx
push 0x100
stosb byte es:[edi], al
lea eax, [esp + 0x24c]
push eax
push 3
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x358]
push edx
call fcn.00422b80
mov eax, dword [esp + 0x30]
add esp, 0x24
push eax
lea ecx, [esp + 0x14]
call fcn.00422aa0
push eax
lea ecx, [esp + 0x18]
call fcn.00422a90
push eax
lea ecx, [esp + 0x1c]
call fcn.00422a80
push eax
lea ecx, [esp + 0x20]
call fcn.00422a70
push eax
lea ecx, [esp + 0x24]
call fcn.00422a60
push eax
lea ecx, [esp + 0x28]
call fcn.00422a50
push eax
lea ecx, [esp + 0x154]
push ecx
push ebx
push str._s_s__d._d._d__d._d._d._s
lea edx, [esp + 0x58]
push 0x104
push edx
call fcn.00422b10
push 0
lea eax, [esp + 0x64]
push eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x270]
push ecx
lea edx, [esp + 0x44]
push edx
push eax
push esi
call fcn.00422bb0
add esp, 0x48
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x422752
mov ecx, dword [esp + 0xc]
push ecx
inc edi
push edi
lea ecx, [esp + 0x18]
call fcn.00422aa0
push eax
lea ecx, [esp + 0x1c]
call fcn.00422a90
push eax
lea ecx, [esp + 0x20]
call fcn.00422a80
push eax
lea ecx, [esp + 0x24]
call fcn.00422a70
push eax
lea ecx, [esp + 0x28]
call fcn.00422a60
push eax
lea ecx, [esp + 0x2c]
call fcn.00422a50
push eax
lea edx, [esp + 0x158]
push edx
push ebx
push str._s_s__d._d._d__d._d._d__d_._s
lea eax, [esp + 0x5c]
push 0x104
push eax
call fcn.00422b10
push 0
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x274]
push edx
lea eax, [esp + 0x48]
push eax
push ecx
push esi
call fcn.00422bb0
add esp, 0x4c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4226c1
lea ecx, [esp + 0x10]
mov dword [esp + 0x454], 0xffffffff
call fcn.004229c0
mov ecx, dword [esp + 0x44c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x444]
xor ecx, ebp
pop edi
call fcn.00415465
mov esp, ebp
pop ebp
ret