Function at 0x470630
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
neg eax
mov dword [ebp - 0x24], eax
test edi, edi
je 0x47085b
cmp esi, 7
ja 0x47096c
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp - 0x28], eax
mov cl, 1
lea eax, [esi - 2]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x20], 5
jbe 0x47093c
mov ecx, 1
mov eax, 0x2000
xor ebx, ebx
movzx edx, byte [0x551654]
mov byte [ebp - 0x14], dl
mov dword [ebp - 0x18], ecx
push ecx
mov dword [ebp - 0x1c], eax
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x4706c0
test bl, bl
je 0x4706c0
mov eax, dword [ebp - 0x1c]
and eax, 0x1000
je 0x4706c0
cmp byte [ebp - 0x14], 0
jne 0x470cad
nop word [eax + eax]
test esi, esi
je 0x47082c
mov eax, dword [ebp + 0xc]
lock add dword [0x551658], eax
test dword [ebp - 0x28], esi
je 0x470822
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x470939
mov eax, dword [ebp + 0xc]
lock sub dword [0x551658], eax
mov eax, dword [ebp - 0x10]
add esi, dword [ebp - 0x28]
and esi, dword [ebp - 0x24]
mov edi, esi
test al, 1
mov ecx, 0
jne 0x470667
mov eax, dword [ebp + 0x10]
add eax, 0xffff0000
mov dword [ebp - 0x24], eax
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
jb 0x470972
cmp dword [ebp - 0x20], 5
jbe 0x470978
mov edi, 0x2000
mov dword [ebp - 0x1c], 0
xor eax, eax
inc eax
mov bl, byte [0x551654]
mov dword [ebp - 0x14], eax
push eax
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x470776
cmp byte [ebp - 0x1c], 0
je 0x470776
mov eax, edi
and eax, 0x1000
je 0x470776
test bl, bl
jne 0x470f04
test esi, esi
je 0x47086a
mov eax, dword [ebp - 0x10]
lock add dword [0x551658], eax
mov eax, dword [ebp - 0x28]
and eax, esi
mov ebx, dword [ebp + 0x10]
cmove ebx, eax
sub ebx, eax
mov eax, dword [ebp - 0x24]
sub eax, ebx
or eax, ebx
je 0x470822
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x47096f
mov eax, dword [ebp - 0x10]
lock sub dword [0x551658], eax
cmp dword [ebp + 0x14], 2
jae 0x4709b2
mov edi, 0x2000
mov dword [ebp - 0x1c], 0
xor eax, eax
inc eax
add ebx, esi
mov cl, byte [0x551654]
mov byte [ebp - 0x14], cl
mov dword [ebp - 0x18], eax
push eax
push edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x470814
cmp byte [ebp - 0x1c], 0
je 0x470814
mov eax, edi
and eax, 0x1000
je 0x470814
cmp byte [ebp - 0x14], 0
jne 0x471152
test esi, esi
je 0x47084a
mov eax, dword [ebp + 0xc]
lock add dword [0x551658], eax
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xchg dword [0x551648], eax
xor esi, esi
test edi, edi
mov eax, dword [ebp - 0x10]
jne 0x4706fe
jmp 0x4709f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
xchg dword [0x551648], eax
jmp 0x47072a
call fcn.00479490
mov edi, eax
and edi, dword [ebp - 0x24]
jmp 0x47064f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xchg dword [0x551648], eax
push 0x55165c
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x47088f
mov ecx, 0x55165c
call fcn.00474570
mov eax, dword [0x55164c]
test eax, eax
je 0x4708c7
mov esi, dword [0x551650]
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x470975
lock sub dword [0x551658], esi
xor eax, eax
mov dword [0x55164c], eax
mov dword [0x551650], eax
push 0x55165c
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp dword [ebp + 0x14], 2
jae 0x470a1c
mov edi, 0x2000
mov dword [ebp - 0x1c], 0
xor eax, eax
inc eax
mov bl, byte [0x551654]
mov dword [ebp - 0x14], eax
push eax
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x47091e
cmp byte [ebp - 0x1c], 0
je 0x47091e
mov eax, edi
and eax, 0x1000
je 0x47091e
test bl, bl
jne 0x470a5f
test esi, esi
jne 0x47077e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xchg dword [0x551648], eax
xor esi, esi
jmp 0x470822
int3
mov eax, dword [ebp - 0x20]
jmp dword [eax*4 + 0x530588]
mov ecx, 4
jmp 0x470960
mov ecx, 0x40
jmp 0x470960
mov bl, 1
mov ecx, dword [ebp + 0x14]
jmp 0x470962
mov ecx, 0x20
mov bl, 1
mov eax, 0x3000
jmp 0x470680
int3
int3
int3
int3
mov al, 1
mov dword [ebp - 0x1c], eax
mov edi, 0x3000
mov eax, dword [ebp - 0x20]
jmp dword [eax*4 + 0x5305a0]
mov eax, dword [ebp + 0x14]
jmp 0x470743
mov eax, 4
jmp 0x470743
mov eax, 0x20
jmp 0x470743
mov eax, 0x40
jmp 0x470743
cmp dword [ebp - 0x20], 5
jbe 0x4709bb
int3
mov al, 1
mov dword [ebp - 0x1c], eax
mov edi, 0x3000
mov eax, dword [ebp - 0x20]
jmp dword [eax*4 + 0x5305d0]
mov eax, dword [ebp + 0x14]
jmp 0x4707db
mov eax, 4
jmp 0x4707db
mov eax, 0x20
jmp 0x4707db
mov eax, 0x40
jmp 0x4707db
call fcn.004e4a00
sub esp, 8
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push 0
call fcn.004e4730
add esp, 0x14
mov esi, eax
test eax, eax
jne 0x4706c8
jmp 0x470932
cmp dword [ebp - 0x20], 5
jbe 0x470a25
int3
mov al, 1
mov dword [ebp - 0x1c], eax
mov edi, 0x3000
mov eax, dword [ebp - 0x20]
jmp dword [eax*4 + 0x5305b8]
mov eax, dword [ebp + 0x14]
jmp 0x4708eb
mov eax, 4
jmp 0x4708eb
mov eax, 0x20
jmp 0x4708eb
mov eax, 0x40
jmp 0x4708eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470a7b
cmp eax, 0x27b
jne 0x470926
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x47077e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470ab8
cmp eax, 0x27b
jne 0x470926
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x47077e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470af5
cmp eax, 0x27b
jne 0x470926
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x47077e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470b32
cmp eax, 0x27b
jne 0x470926
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x47077e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470b6f
cmp eax, 0x27b
jne 0x470926
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x47077e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470bac
cmp eax, 0x27b
jne 0x470926
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x47077e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470be9
cmp eax, 0x27b
jne 0x470926
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x47077e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470c26
cmp eax, 0x27b
jne 0x470926
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x47077e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470c63
cmp eax, 0x27b
jne 0x470926
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x47077e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470ca0
cmp eax, 0x27b
jne 0x470926
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x470926
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470cc9
cmp eax, 0x27b
jne 0x47082c
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x4706c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470d07
cmp eax, 0x27b
jne 0x47082c
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x4706c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470d45
cmp eax, 0x27b
jne 0x47082c
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x4706c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470d83
cmp eax, 0x27b
jne 0x47082c
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x4706c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470dc1
cmp eax, 0x27b
jne 0x47082c
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x4706c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470dff
cmp eax, 0x27b
jne 0x47082c
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x4706c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470e3d
cmp eax, 0x27b
jne 0x47082c
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x4706c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470e7b
cmp eax, 0x27b
jne 0x47082c
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x4706c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470eb9
cmp eax, 0x27b
jne 0x47082c
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x4706c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470ef7
cmp eax, 0x27b
jne 0x47082c
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x47082c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470f20
cmp eax, 0x27b
jne 0x47086a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x47077e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470f5d
cmp eax, 0x27b
jne 0x47086a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x47077e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470f9a
cmp eax, 0x27b
jne 0x47086a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x47077e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x470fd7
cmp eax, 0x27b
jne 0x47086a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x47077e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x471014
cmp eax, 0x27b
jne 0x47086a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x47077e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x471051
cmp eax, 0x27b
jne 0x47086a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x47077e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x47108e
cmp eax, 0x27b
jne 0x47086a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x47077e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4710cb
cmp eax, 0x27b
jne 0x47086a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x47077e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x471108
cmp eax, 0x27b
jne 0x47086a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x47077e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x471145
cmp eax, 0x27b
jne 0x47086a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x47086a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x47116e
cmp eax, 0x27b
jne 0x47084a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x470818
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4711aa
cmp eax, 0x27b
jne 0x47084a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x470818
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4711e6
cmp eax, 0x27b
jne 0x47084a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x470818
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x471222
cmp eax, 0x27b
jne 0x47084a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x470818
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x47125e
cmp eax, 0x27b
jne 0x47084a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x470818
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x47129a
cmp eax, 0x27b
jne 0x47084a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x470818
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4712d6
cmp eax, 0x27b
jne 0x47084a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x470818
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x471312
cmp eax, 0x27b
jne 0x47084a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x470818
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x47134e
cmp eax, 0x27b
jne 0x47084a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
push edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
jne 0x470818
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x47138a
cmp eax, 0x27b
jne 0x47084a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x47084a