Function at 0x436aa0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, eax
neg ecx
mov dword [ebp - 0x14], ecx
test esi, esi
je 0x436cb1
dec eax
mov dword [ebp - 0x28], eax
xor eax, eax
test edi, edi
setne al
or eax, 2
shl eax, 0xc
mov cl, 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], eax
and eax, 0x1000
mov dword [ebp - 0x2c], eax
lea eax, [edi - 1]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 5
jbe 0x436cca
mov dword [ebp - 0x1c], 0
xor ecx, ecx
inc ecx
mov bl, byte [0x55d334]
mov dword [ebp - 0x18], ecx
push ecx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x436b2d
test bl, bl
je 0x436b2d
cmp byte [ebp - 0x1c], 0
je 0x436b2d
cmp dword [ebp - 0x2c], 0
jne 0x436d16
test edi, edi
je 0x436b6b
mov eax, dword [ebp + 0xc]
lock add dword [0x55d338], eax
mov eax, edi
and eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0x14]
je 0x436ca7
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x436cc7
mov eax, dword [ebp + 0xc]
lock sub dword [0x55d338], eax
jmp 0x436b81
call dword [sym.imp.KERNEL32.dll_GetLastError]
xchg dword [0x55d328], eax
xor edi, edi
test esi, esi
je 0x436ce8
add edi, dword [ebp - 0x28]
and edi, dword [ebp - 0x14]
add edi, dword [ebp + 0x14]
mov esi, edi
test byte [ebp - 0x20], 1
mov dword [ebp - 0x20], 0
jne 0x436ae8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea esi, [ecx + eax]
add esi, 0xffff0000
cmp esi, ecx
jb 0x436f9d
add eax, 0xffff0000
mov dword [ebp - 0x20], eax
xor eax, eax
inc eax
cmp dword [ebp - 0x24], 5
jbe 0x436f7f
mov dword [ebp - 0x1c], 0
mov ecx, eax
mov bl, byte [0x55d334]
mov dword [ebp - 0x14], ecx
push ecx
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x436c02
test bl, bl
je 0x436c02
cmp byte [ebp - 0x1c], 0
je 0x436c02
cmp dword [ebp - 0x2c], 0
jne 0x436fa0
test edi, edi
je 0x436c6d
lock add dword [0x55d338], esi
mov eax, edi
and eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x14]
sub ecx, eax
mov eax, 0
cmovb eax, dword [ebp + 0x10]
lea ebx, [ecx + eax]
mov eax, dword [ebp - 0x20]
sub eax, ebx
or eax, ebx
je 0x436ca7
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x436f7c
add ebx, edi
lock sub dword [0x55d338], esi
sub esp, 8
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push ebx
call fcn.00436720
add esp, 0x14
mov edi, eax
test eax, eax
mov eax, 1
jne 0x436c9d
jmp 0x436bbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
xchg dword [0x55d328], eax
call fcn.004ea290
sub esp, 8
push dword [ebp + 0x18]
push esi
push 0
call fcn.00436720
add esp, 0x14
mov edi, eax
test eax, eax
jne 0x436c06
xor edi, edi
jmp 0x436ca7
mov eax, dword [ebp + 0xc]
lock add dword [0x55d338], eax
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, eax
call fcn.0047b6c0
mov esi, eax
mov eax, ebx
and esi, dword [ebp - 0x14]
add esi, dword [ebp + 0x14]
jmp 0x436ac1
int3
mov ecx, 2
mov al, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
jmp dword [eax*4 + 0x53a724]
mov ecx, 4
jmp 0x436f72
call fcn.004ea290
sub esp, 8
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push 0
call fcn.00436720
add esp, 0x14
mov edi, eax
test eax, eax
jne 0x436b31
jmp 0x436c99
mov ecx, 0x20
jmp 0x436f72
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x436d32
cmp eax, 0x27b
jne 0x436b6b
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x436b31
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x436d70
cmp eax, 0x27b
jne 0x436b6b
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x436b31
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x436dae
cmp eax, 0x27b
jne 0x436b6b
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x436b31
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x436dec
cmp eax, 0x27b
jne 0x436b6b
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x436b31
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x436e2a
cmp eax, 0x27b
jne 0x436b6b
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x436b31
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x436e68
cmp eax, 0x27b
jne 0x436b6b
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x436b31
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x436ea6
cmp eax, 0x27b
jne 0x436b6b
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x436b31
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x436ee4
cmp eax, 0x27b
jne 0x436b6b
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x436b31
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x436f22
cmp eax, 0x27b
jne 0x436b6b
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x436b31
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x436f60
cmp eax, 0x27b
jne 0x436b6b
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x436b6b
mov ecx, 0x40
mov al, 1
mov dword [ebp - 0x1c], eax
jmp case.0x436cd7.0
int3
mov ecx, 2
mov al, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
jmp dword [eax*4 + 0x53a73c]
mov ecx, 4
jmp case.0x436f8c.0
int3
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x436fbc
cmp eax, 0x27b
jne 0x436c6d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x436c06
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x436ff9
cmp eax, 0x27b
jne 0x436c6d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x436c06
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x437036
cmp eax, 0x27b
jne 0x436c6d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x436c06
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x437073
cmp eax, 0x27b
jne 0x436c6d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x436c06
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4370b0
cmp eax, 0x27b
jne 0x436c6d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x436c06
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4370ed
cmp eax, 0x27b
jne 0x436c6d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x436c06
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x43712a
cmp eax, 0x27b
jne 0x436c6d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x436c06
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x437167
cmp eax, 0x27b
jne 0x436c6d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x436c06
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4371a4
cmp eax, 0x27b
jne 0x436c6d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x436c06
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4371e1
cmp eax, 0x27b
jne 0x436c6d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x436c6d
mov ecx, 0x20
jmp case.0x436f8c.0
mov ecx, 0x40
jmp case.0x436f8c.0