Function at 0x421b20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ec1b
mov eax, dword fs:[0]
push eax
mov eax, 0x122c
call fcn.00571b70
mov eax, dword [0x627a40]
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 eax, edx
mov dword [ebp - 0x1234], eax
mov dword [ebp - 0x1238], ecx
cmp dword [0x62d23c], 0
jne 0x421ccf
ret 0x8589
call fcn.00436550
test al, al
je 0x421b91
jne 0x421b25
mov ch, 0x8d
mov bh, 0x8c
sbb esp, esp
mov ecx, 0x99dcd6c9
loopne 0x421b53
cmp dword [edx - 0x1f], edx
xchg edi, eax
ror ebx, cl
push ecx
dec edx
movsb byte es:[edi], byte [esi]
ret
call fcn.00436390
test al, al
je 0x421bb8
mov bl, 0xdc
add ebx, eax
je 0x421b9b
fadd qword [ecx]
ret
invalid
push 0x206
lea eax, [ebp - 0x216]
push 0
push eax
call fcn.00576f50
movups xmm0, xmmword [str.C:LogResLog.dll]
mov eax, dword [0x61bad4]
add esp, 0xc
mov dword [ebp - 0x1f8], eax
lea eax, [ebp - 0x218]
movups xmmword [ebp - 0x218], xmm0
movups xmm0, xmmword [0x61bac4]
push eax
movups xmmword [ebp - 0x208], xmm0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x421caf
cmp dword [0x62d54c], 8
mov eax, 0x62d538
cmovae eax, dword [0x62d538]
push eax
lea eax, [ebp - 0x1230]
push eax
call fcn.00421df0
push 0xa
push 0x61bc84
lea ecx, [ebp - 0x1230]
mov dword [ebp - 4], 0
call fcn.0040be00
mov esi, dword [ebp - 0x121c]
lea ecx, [ebp - 0x1230]
cmp esi, 8
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp - 0x1230]
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x421c60
mov dword [ebp - 4], 0xffffffff
cmp esi, 8
jb 0x421c92
lea eax, [esi + 1]
push eax
push dword [ebp - 0x1230]
lea ecx, [ebp - 0x1230]
call fcn.00404090
xor eax, eax
mov dword [ebp - 0x121c], 7
mov dword [ebp - 0x1220], 0
mov word [ebp - 0x1230], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x62d23c], eax
test eax, eax
je 0x421dd1
mov eax, dword [ebp - 0x1234]
push 0
push 0x619488
mov ecx, eax
call fcn.00403d10
call fcn.00436780
test al, al
je 0x421cfd
xor al, 0x20
loopne 0x421d2d
sub byte [eax - 0x5753cf4b], bl
sbb al, 0x9f
dec esi
inc edx
out 0x14, eax
into
cli
cmc
and eax, ebx
call fcn.00436400
test al, al
je 0x421d1e
cmp esi, dword es:[ebp - 0x1c3e6c53]
salc
mov edx, 0xe4efd33b
imul ah
xchg ebp, eax
and al, 0x9e
pushal
mov ah, byte [edx - 0x17b8eeac]
mov ebp, 0x84000140
sal byte [eax + ebx - 0x70], 0x59
call fcn.00435de0
test al, al
je 0x421d3f
nop
pop ecx
cmpsd dword [esi], dword es:[edi]
out dx, eax
adc eax, 0x99b80b0
sar bl, cl
cmp al, 0x3b
sbb byte [ebx + 0x3cfbd209], 0x3b
pop edx
pop esp
nop
inc byte [edx - 0x4e29918]
dec ebx
invalid
push 0x800
lea eax, [ebp - 0x1218]
push eax
push dword [ebp - 0x1238]
push dword [0x62d23c]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jle 0x421db6
cmp word [ebp - 0x1218], 0
jne 0x421d84
xor ecx, ecx
lea eax, [ebp - 0x1218]
push ecx
mov ecx, dword [ebp - 0x1234]
push eax
call fcn.00403d10
mov al, 1
jmp 0x421dd3
lea ecx, [ebp - 0x1218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421d90
sub ecx, edx
lea eax, [ebp - 0x1218]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x1234]
push eax
call fcn.00403d10
mov al, 1
jmp 0x421dd3
call fcn.00436710
test al, al
je 0x421dd1
int1
ja 0x421e3d
push edx
cmp byte [ecx + 0xde70080], bh
sub dword [ecx + 0x4785372d], esi
outsb dx, byte [esi]
pop esi
xor al, al
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.00570ea9
mov esp, ebp
pop ebp
ret
add byte [eax], al
add byte [eax], al
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x421e4e
xor ecx, ecx
jmp 0x421e62
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421e53
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403d10
mov dword [ebp - 4], 1
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x421e99
mov eax, dword [esi]
jmp 0x421e9b
mov eax, esi
xor ecx, ecx
push ecx
mov word [eax], cx
mov ecx, esi
push 0x619488
call fcn.00403d10
push 1
push ecx
push 0x61970c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], 1
call fcn.00422840
cmp eax, 0xffffffff
jle 0x421edd
inc eax
lea ecx, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x40]
push eax
call fcn.00403880
mov edi, eax
jmp 0x421f04
push 1
push ecx
push 0x61bc80
lea ecx, [ebp - 0x28]
call fcn.00422840
cmp eax, 0xffffffff
jle 0x421f59
inc eax
lea ecx, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x40]
push eax
call fcn.00403880
mov edi, eax
cmp esi, edi
je 0x421f42
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x421f1b
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00404090
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x421f33
mov eax, dword [esi]
jmp 0x421f35
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00403f30
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x421f6c
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00404090
jmp 0x421f6c
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x421f6c
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00403e10
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x421f81
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00404090
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00570ea9
mov esp, ebp
pop ebp
ret 8