Function at 0x422f20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aaf46
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x5036c4]
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 0x42360c
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00469cf0
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x422fb8
mov eax, dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x422fe6
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 0x422fee
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 0x4230fb
call fcn.00438c20
mov ecx, eax
push 2
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42360c
push 0x5c
push 0x4ce170
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.0040a7b0
push 3
push 0x4ce0c4
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.0040a7b0
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.00406590
mov esi, eax
mov byte [ebp - 4], 3
push 0x4ce14c
push esi
call fcn.004056a0
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004056a0
add esp, 0x10
call fcn.00438c20
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x30c]
call fcn.00407560
lea ecx, [ebp - 0x248]
call fcn.00406e50
lea ecx, [ebp - 0x230]
call fcn.00406e50
jmp 0x42360c
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 0x423121
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a8a0
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 0x42318e
mov eax, dword [esi]
test eax, eax
je 0x42317e
lea ecx, [ebp - 0x230]
add eax, 4
push ecx
push eax
call fcn.004324c0
add esp, 8
test al, al
jne 0x423187
add esi, 8
cmp esi, edi
jne 0x423161
jmp 0x42318e
mov byte [ebp - 0x261], 1
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4231d2
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4231c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42362c
push edx
push ecx
call fcn.0043b7c2
add esp, 8
cmp byte [ebp - 0x261], 0
je 0x423289
call fcn.00438c20
mov ecx, eax
push 2
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42360c
push 0x5c
push 0x4ce1d0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.0040a7b0
push 3
push 0x4ce230
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.0040a7b0
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.00406590
mov esi, eax
mov byte [ebp - 4], 7
push 0x4ce234
jmp 0x4230b2
lea eax, [ebp - 0x218]
push eax
call fcn.0043fa30
add esp, 4
test eax, eax
jne 0x423350
call fcn.00438c20
mov ecx, eax
push 2
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42360c
push 0x5c
push 0x4ce258
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.0040a7b0
push 3
push 0x4ce2b8
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.0040a7b0
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.00406590
mov esi, eax
push str.Check_sign_failed:
push esi
mov byte [ebp - 4], 0xa
call fcn.00407430
jmp 0x4230b8
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 0x423376
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.0040a8a0
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.00422c30
test eax, eax
jne 0x42349d
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 0x4233e6
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a8a0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0xc
mov ebx, 7
mov ecx, esi
push eax
mov dword [ebp - 0x268], ebx
call fcn.00422940
test eax, eax
jne 0x42349d
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 0x423450
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.0040a8a0
lea eax, [ebp - 0x260]
mov dword [ebp - 4], 0xd
mov ebx, 0xf
mov ecx, esi
push eax
mov dword [ebp - 0x268], ebx
call fcn.00422440
mov byte [ebp - 0x261], 0
test eax, eax
je 0x4234a4
mov byte [ebp - 0x261], 1
mov dword [ebp - 4], 0xc
test bl, 8
je 0x423510
mov edx, dword [ebp - 0x24c]
and ebx, 0xfffffff7
cmp edx, 8
jb 0x4234f3
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4234e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423631
push edx
push ecx
call fcn.0043b7c2
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 0x42357c
mov edx, dword [ebp - 0x21c]
and ebx, 0xfffffffb
cmp edx, 8
jb 0x42355f
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x423555
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423636
push edx
push ecx
call fcn.0043b7c2
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 0x4235c8
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4235be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42363b
push edx
push ecx
call fcn.0043b7c2
add esp, 8
cmp byte [ebp - 0x261], 0
jne 0x423606
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4235e0
mov ebx, dword [ebp - 0x270]
lea eax, [ebp - 0x218]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0040a8a0
jmp 0x42360c
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.0043ba78
mov esp, ebp
pop ebp
ret 8
call fcn.0046d258
call fcn.0046d258
call fcn.0046d258
call fcn.0046d258
int3