Function at 0x423840
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac6b6
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x4ef6d4]
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 0x423f2c
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0046b3e0
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4238d8
mov eax, dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x423906
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 0x42390e
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 0x423a1b
call fcn.0043a380
mov ecx, eax
push 2
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x423f2c
push 0x5c
push 0x4c2b48
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.0040a7c0
push 3
push 0x4c2b44
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.0040a7c0
push 0xd8
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 0x4c2ba8
push esi
call fcn.004056a0
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004056a0
add esp, 0x10
call fcn.0043a380
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 0x423f2c
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 0x423a41
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a8b0
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 4], 4
mov byte [ebp - 0x261], 0
mov esi, dword [eax + 0x3c]
mov edi, dword [eax + 0x40]
cmp esi, edi
je 0x423aae
mov eax, dword [esi]
test eax, eax
je 0x423a9e
lea ecx, [ebp - 0x230]
add eax, 4
push ecx
push eax
call fcn.00433c30
add esp, 8
test al, al
jne 0x423aa7
add esi, 8
cmp esi, edi
jne 0x423a81
jmp 0x423aae
mov byte [ebp - 0x261], 1
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x423af2
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x423ae8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423f4c
push edx
push ecx
call fcn.0043cf22
add esp, 8
cmp byte [ebp - 0x261], 0
je 0x423ba9
call fcn.0043a380
mov ecx, eax
push 2
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x423f2c
push 0x5c
push 0x4c2bd0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.0040a7c0
push 3
push 0x4c2bcc
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.0040a7c0
push 0xdd
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 str.Client_is_exist:
jmp 0x4239d2
lea eax, [ebp - 0x218]
push eax
call fcn.00441190
add esp, 4
test eax, eax
jne 0x423c70
call fcn.0043a380
mov ecx, eax
push 2
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x423f2c
push 0x5c
push 0x4c2c58
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.0040a7c0
push 3
push 0x4c2c54
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.0040a7c0
push 0xe4
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 0x4239d8
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 0x423c96
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.0040a8b0
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.00423550
test eax, eax
jne 0x423dbd
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 0x423d06
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a8b0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0xc
mov ebx, 7
mov ecx, esi
push eax
mov dword [ebp - 0x268], ebx
call fcn.00423250
test eax, eax
jne 0x423dbd
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 0x423d70
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.0040a8b0
lea eax, [ebp - 0x260]
mov dword [ebp - 4], 0xd
mov ebx, 0xf
mov ecx, esi
push eax
mov dword [ebp - 0x268], ebx
call fcn.00422d50
mov byte [ebp - 0x261], 0
test eax, eax
je 0x423dc4
mov byte [ebp - 0x261], 1
mov dword [ebp - 4], 0xc
test bl, 8
je 0x423e30
mov edx, dword [ebp - 0x24c]
and ebx, 0xfffffff7
cmp edx, 8
jb 0x423e13
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x423e09
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423f51
push edx
push ecx
call fcn.0043cf22
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 0x423e9c
mov edx, dword [ebp - 0x21c]
and ebx, 0xfffffffb
cmp edx, 8
jb 0x423e7f
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x423e75
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423f56
push edx
push ecx
call fcn.0043cf22
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 0x423ee8
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x423ede
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423f5b
push edx
push ecx
call fcn.0043cf22
add esp, 8
cmp byte [ebp - 0x261], 0
jne 0x423f26
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423f00
mov ebx, dword [ebp - 0x270]
lea eax, [ebp - 0x218]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0040a8b0
jmp 0x423f2c
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.0043d1d8
mov esp, ebp
pop ebp
ret 8
call fcn.0046e938
call fcn.0046e938
call fcn.0046e938
call fcn.0046e938
int3