Function at 0x480930
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524240
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x579630]
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 [0x57f480]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x59], 0
test ebx, ebx
je 0x480b63
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, 0x535af4
cmove eax, ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00417430
add esp, 8
cmp byte [0x57dba1], 0
mov dword [ebp - 4], 0
je 0x480a52
lea eax, [ebp - 0x78]
push str.LogTransport2.exe
push eax
call fcn.0042f9b0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x480a41
cmp dword [ebp - 0x2c], 8
jb 0x4809e5
push dword [ebp - 0x40]
call fcn.004085be
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 0x480a17
mov eax, dword [esi + 0x10]
inc eax
je 0x480a22
add eax, eax
push eax
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.004f7f60
add esp, 0xc
jmp 0x480a22
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 0x480a52
push dword [ebp - 0x78]
call fcn.004085be
add esp, 4
cmp dword [ebp - 0x30], 0
je 0x480c7c
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 0x480c7c
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x60]
call fcn.00445c30
add esp, 8
test al, al
je 0x480c7c
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push 1
push 0x5340c4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040ef80
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040af40
push 1
push 0x5340c4
lea ecx, [ebp - 0x28]
call fcn.0040ef80
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.00445c30
add esp, 8
test al, al
je 0x480b1e
cmp dword [ebp - 0x14], 8
mov bl, 1
jb 0x480af7
push dword [ebp - 0x28]
call fcn.004085be
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 0x480b66
push dword [ebp - 0x40]
call fcn.004085be
add esp, 4
jmp 0x480b66
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + 0x25]
cmp dword [edi + 0x10], eax
je 0x480b84
cmp dword [ebp - 0x14], 8
jb 0x480b3a
push dword [ebp - 0x28]
call fcn.004085be
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 0x480c8b
push dword [ebp - 0x40]
call fcn.004085be
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.00401590
mov esp, ebp
pop ebp
ret
push ecx
push 0
lea eax, [ebp - 0x78]
mov ecx, edi
push eax
call fcn.00407cc0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
push eax
call fcn.00445c30
add esp, 8
mov byte [ebp - 4], 1
test al, al
sete bl
cmp dword [ebp - 0x64], 8
jb 0x480bbd
push dword [ebp - 0x78]
call fcn.004085be
add esp, 4
test bl, bl
jne 0x480b29
cmp dword [edi + 0x14], 8
jb 0x480bcf
mov eax, dword [edi]
jmp 0x480bd1
mov eax, edi
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2], 0x20
jne 0x480b29
lea eax, [ecx + 1]
mov ecx, edi
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00407cc0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
call fcn.00480550
add esp, 4
test al, al
jne 0x480c2e
cmp dword [ebp - 0x44], 8
jb 0x480c15
push dword [ebp - 0x58]
call fcn.004085be
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jmp 0x480b29
cmp dword [ebp - 0x44], 8
mov byte [ebp - 0x59], 1
jb 0x480c43
push dword [ebp - 0x58]
call fcn.004085be
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 0x480c68
push dword [ebp - 0x28]
call fcn.004085be
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 0x480b63
jmp 0x480b58
mov bl, al
jmp 0x480b66