Function at 0x422e90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa6e6
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x5026c4]
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 0x42357c
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00469a40
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x422f28
mov eax, dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x422f56
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 0x422f5e
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 0x42306b
call fcn.00438b60
mov ecx, eax
push 2
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42357c
push 0x5c
push 0x4cd170
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.0040a700
push 3
push 0x4cd0c4
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.0040a700
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.004064e0
mov esi, eax
mov byte [ebp - 4], 3
push 0x4cd14c
push esi
call fcn.004055f0
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004055f0
add esp, 0x10
call fcn.00438b60
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x30c]
call fcn.004074b0
lea ecx, [ebp - 0x248]
call fcn.00406da0
lea ecx, [ebp - 0x230]
call fcn.00406da0
jmp 0x42357c
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 0x423091
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a7f0
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 0x4230fe
mov eax, dword [esi]
test eax, eax
je 0x4230ee
lea ecx, [ebp - 0x230]
add eax, 4
push ecx
push eax
call fcn.00432410
add esp, 8
test al, al
jne 0x4230f7
add esi, 8
cmp esi, edi
jne 0x4230d1
jmp 0x4230fe
mov byte [ebp - 0x261], 1
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x423142
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x423138
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42359c
push edx
push ecx
call fcn.0043b702
add esp, 8
cmp byte [ebp - 0x261], 0
je 0x4231f9
call fcn.00438b60
mov ecx, eax
push 2
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42357c
push 0x5c
push 0x4cd1d0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.0040a700
push 3
push 0x4cd230
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.0040a700
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.004064e0
mov esi, eax
mov byte [ebp - 4], 7
push 0x4cd234
jmp 0x423022
lea eax, [ebp - 0x218]
push eax
call fcn.0043f970
add esp, 4
test eax, eax
jne 0x4232c0
call fcn.00438b60
mov ecx, eax
push 2
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42357c
push 0x5c
push 0x4cd258
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.0040a700
push 3
push 0x4cd2b8
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.0040a700
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.004064e0
mov esi, eax
push str.Check_sign_failed:
push esi
mov byte [ebp - 4], 0xa
call fcn.00407380
jmp 0x423028
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 0x4232e6
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.0040a7f0
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.00422ba0
test eax, eax
jne 0x42340d
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 0x423356
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a7f0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0xc
mov ebx, 7
mov ecx, esi
push eax
mov dword [ebp - 0x268], ebx
call fcn.004228b0
test eax, eax
jne 0x42340d
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 0x4233c0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.0040a7f0
lea eax, [ebp - 0x260]
mov dword [ebp - 4], 0xd
mov ebx, 0xf
mov ecx, esi
push eax
mov dword [ebp - 0x268], ebx
call fcn.004223b0
mov byte [ebp - 0x261], 0
test eax, eax
je 0x423414
mov byte [ebp - 0x261], 1
mov dword [ebp - 4], 0xc
test bl, 8
je 0x423480
mov edx, dword [ebp - 0x24c]
and ebx, 0xfffffff7
cmp edx, 8
jb 0x423463
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x423459
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4235a1
push edx
push ecx
call fcn.0043b702
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 0x4234ec
mov edx, dword [ebp - 0x21c]
and ebx, 0xfffffffb
cmp edx, 8
jb 0x4234cf
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4234c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4235a6
push edx
push ecx
call fcn.0043b702
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 0x423538
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42352e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4235ab
push edx
push ecx
call fcn.0043b702
add esp, 8
cmp byte [ebp - 0x261], 0
jne 0x423576
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423550
mov ebx, dword [ebp - 0x270]
lea eax, [ebp - 0x218]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0040a7f0
jmp 0x42357c
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.0043b9b8
mov esp, ebp
pop ebp
ret 8
call fcn.0046cf98
call fcn.0046cf98
call fcn.0046cf98
call fcn.0046cf98
int3