Function at 0x473310
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5091c0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x556620]
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 ebx, dword [0x55b408]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x59], 0
test ebx, ebx
je 0x473543
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [ebx + 0x49]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, str.ReaderLogTransport2.exe
test bl, bl
mov eax, 0x518c68
cmove eax, ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00418230
add esp, 8
cmp byte [0x55a336], 0
mov dword [ebp - 4], 0
je 0x473432
lea eax, [ebp - 0x78]
push str.LogTransport2.exe
push eax
call fcn.0042be20
mov esi, eax
add esp, 8
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x473421
cmp dword [ebp - 0x2c], 8
jb 0x4733c5
push dword [ebp - 0x40]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp dword [esi + 0x14], 8
jae 0x4733f7
mov eax, dword [esi + 0x10]
inc eax
je 0x473402
add eax, eax
push eax
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.004dd9e0
add esp, 0xc
jmp 0x473402
mov eax, dword [esi]
mov dword [ebp - 0x40], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x64], 8
jb 0x473432
push dword [ebp - 0x78]
call fcn.0040823e
add esp, 4
cmp dword [ebp - 0x30], 0
je 0x47365c
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47365c
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x60]
call fcn.00441880
add esp, 8
test al, al
je 0x47365c
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push 1
push 0x51746c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040efb0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f160
push 1
push 0x51746c
lea ecx, [ebp - 0x28]
call fcn.0040efb0
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.00441880
add esp, 8
test al, al
je 0x4734fe
cmp dword [ebp - 0x14], 8
mov bl, 1
jb 0x4734d7
push dword [ebp - 0x28]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x473546
push dword [ebp - 0x40]
call fcn.0040823e
add esp, 4
jmp 0x473546
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + 0x25]
cmp dword [edi + 0x10], eax
je 0x473564
cmp dword [ebp - 0x14], 8
jb 0x47351a
push dword [ebp - 0x28]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x47366b
push dword [ebp - 0x40]
call fcn.0040823e
add esp, 4
mov bl, byte [ebp - 0x59]
mov al, bl
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.00401580
mov esp, ebp
pop ebp
ret
push ecx
push 0
lea eax, [ebp - 0x78]
mov ecx, edi
push eax
call fcn.00407940
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
push eax
call fcn.00441880
add esp, 8
mov byte [ebp - 4], 1
test al, al
sete bl
cmp dword [ebp - 0x64], 8
jb 0x47359d
push dword [ebp - 0x78]
call fcn.0040823e
add esp, 4
test bl, bl
jne 0x473509
cmp dword [edi + 0x14], 8
jb 0x4735af
mov eax, dword [edi]
jmp 0x4735b1
mov eax, edi
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2], 0x20
jne 0x473509
lea eax, [ecx + 1]
mov ecx, edi
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00407940
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
call fcn.00472f30
add esp, 4
test al, al
jne 0x47360e
cmp dword [ebp - 0x44], 8
jb 0x4735f5
push dword [ebp - 0x58]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jmp 0x473509
cmp dword [ebp - 0x44], 8
mov byte [ebp - 0x59], 1
jb 0x473623
push dword [ebp - 0x58]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jb 0x473648
push dword [ebp - 0x28]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x2c], 8
jb 0x473543
jmp 0x473538
mov bl, al
jmp 0x473546