Function at 0x422b50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8626
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x4ff5e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x26c], ecx
mov ebx, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x268], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov dword [ebp - 0x270], ebx
mov word [ebx], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x268], 1
cmp dword [esi + 0x10], eax
je 0x42323c
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004679d0
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x422be8
mov eax, dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x422c16
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [esi + 0x14], 8
jb 0x422c1e
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x422d2b
call fcn.00438810
mov ecx, eax
push 2
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42323c
push 0x5c
push 0x4cb060
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.0040a3e0
push 3
push 0x4cafb4
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 1
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040a3e0
push 0xce
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x30c]
call fcn.004061c0
mov esi, eax
mov byte [ebp - 4], 3
push 0x4cb03c
push esi
call fcn.004052d0
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004052d0
add esp, 0x10
call fcn.00438810
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x30c]
call fcn.00407190
lea ecx, [ebp - 0x248]
call fcn.00406a80
lea ecx, [ebp - 0x230]
call fcn.00406a80
jmp 0x42323c
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422d51
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a4d0
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 4], 4
mov byte [ebp - 0x261], 0
mov esi, dword [eax + 0x30]
mov edi, dword [eax + 0x34]
cmp esi, edi
je 0x422dbe
mov eax, dword [esi]
test eax, eax
je 0x422dae
lea ecx, [ebp - 0x230]
add eax, 4
push ecx
push eax
call fcn.004320c0
add esp, 8
test al, al
jne 0x422db7
add esi, 8
cmp esi, edi
jne 0x422d91
jmp 0x422dbe
mov byte [ebp - 0x261], 1
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x422e02
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422df8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42325c
push edx
push ecx
call fcn.0043b3b2
add esp, 8
cmp byte [ebp - 0x261], 0
je 0x422eb9
call fcn.00438810
mov ecx, eax
push 2
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42323c
push 0x5c
push 0x4cb0c0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.0040a3e0
push 3
push 0x4cb120
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 5
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040a3e0
push 0xd3
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x30c]
call fcn.004061c0
mov esi, eax
mov byte [ebp - 4], 7
push 0x4cb124
jmp 0x422ce2
lea eax, [ebp - 0x218]
push eax
call fcn.0043f620
add esp, 4
test eax, eax
jne 0x422f80
call fcn.00438810
mov ecx, eax
push 2
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42323c
push 0x5c
push 0x4cb148
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.0040a3e0
push 3
push 0x4cb1a8
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040a3e0
push 0xda
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x30c]
call fcn.004061c0
mov esi, eax
push str.Check_sign_failed:
push esi
mov byte [ebp - 4], 0xa
call fcn.00407060
jmp 0x422ce8
xor eax, eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422fa6
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.0040a4d0
mov esi, dword [ebp - 0x26c]
lea eax, [ebp - 0x248]
mov ebx, 3
mov dword [ebp - 4], 0xb
push eax
mov ecx, esi
mov dword [ebp - 0x268], ebx
call fcn.00422860
test eax, eax
jne 0x4230cd
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x230], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423016
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a4d0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0xc
mov ebx, 7
mov ecx, esi
push eax
mov dword [ebp - 0x268], ebx
call fcn.00422570
test eax, eax
jne 0x4230cd
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], ebx
lea edx, [ecx + 2]
mov word [ebp - 0x260], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423080
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.0040a4d0
lea eax, [ebp - 0x260]
mov dword [ebp - 4], 0xd
mov ebx, 0xf
mov ecx, esi
push eax
mov dword [ebp - 0x268], ebx
call fcn.00422070
mov byte [ebp - 0x261], 0
test eax, eax
je 0x4230d4
mov byte [ebp - 0x261], 1
mov dword [ebp - 4], 0xc
test bl, 8
je 0x423140
mov edx, dword [ebp - 0x24c]
and ebx, 0xfffffff7
cmp edx, 8
jb 0x423123
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x423119
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423261
push edx
push ecx
call fcn.0043b3b2
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov dword [ebp - 4], 0xb
test bl, 4
je 0x4231ac
mov edx, dword [ebp - 0x21c]
and ebx, 0xfffffffb
cmp edx, 8
jb 0x42318f
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x423185
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423266
push edx
push ecx
call fcn.0043b3b2
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov edx, dword [ebp - 0x234]
and ebx, 0xfffffffd
mov dword [ebp - 4], 0
mov dword [ebp - 0x268], ebx
cmp edx, 8
jb 0x4231f8
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4231ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42326b
push edx
push ecx
call fcn.0043b3b2
add esp, 8
cmp byte [ebp - 0x261], 0
jne 0x423236
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423210
mov ebx, dword [ebp - 0x270]
lea eax, [ebp - 0x218]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0040a4d0
jmp 0x42323c
mov ebx, dword [ebp - 0x270]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043b668
mov esp, ebp
pop ebp
ret 8
call fcn.0046af28
call fcn.0046af28
call fcn.0046af28
call fcn.0046af28
int3