Function at 0x45b300
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571628
mov eax, dword fs:[0]
push eax
sub esp, 0x678
mov eax, dword [0x5edd38]
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, dword [ebp + 8]
xor bh, bh
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x668], 0
mov ecx, dword [0x5f4760]
mov dword [ebp - 0x634], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5f4120]
cmp eax, dword [ecx + 4]
jg 0x45b61c
cmp byte [0x5f411c], 0
jne 0x45b432
push 0
push str.WerFault.exe
lea eax, [ebp - 0x64c]
mov byte [0x5f411c], 1
push 0x29
push eax
call fcn.0042f230
add esp, 0x10
cmp dword [ebp - 0x63c], 0
mov dword [ebp - 4], 0
je 0x45b3e9
cmp dword [ebp - 0x638], 8
lea eax, [ebp - 0x64c]
cmovae eax, dword [ebp - 0x64c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45b3e9
cmp dword [ebp - 0x638], 8
lea eax, [ebp - 0x64c]
push dword [ebp - 0x63c]
cmovae eax, dword [ebp - 0x64c]
mov ecx, 0x5ed9b0
push eax
call fcn.00408f30
mov eax, dword [ebp - 0x638]
mov dword [ebp - 4], 1
cmp eax, 8
jb 0x45b40e
inc eax
lea ecx, [ebp - 0x64c]
push eax
push dword [ebp - 0x64c]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 7
mov word [ebp - 0x64c], ax
mov dword [ebp - 4], 0xffffffff
push 0x5ed9b0
lea ecx, [ebp - 0x664]
call fcn.0040a1e0
cmp dword [ebp - 0x654], 0
mov dword [ebp - 4], 2
je 0x45b5d9
push dword [ebp - 0x634]
lea eax, [ebp - 0x664]
push eax
call fcn.00459270
add esp, 8
test al, al
je 0x45b5d9
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x634], 0
push 0
push eax
mov dword [ebp - 0x66c], 0
call fcn.0053f340
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x45b4a7
mov eax, dword [esi]
lea ecx, [ebp - 0x66c]
push ecx
lea ecx, [ebp - 0x634]
push ecx
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push str._s__u__p__d__s__d
push eax
call fcn.00467570
add esp, 0x18
cmp eax, 3
jne 0x45b5d9
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x684]
call fcn.0040e610
push eax
lea eax, [ebp - 0x664]
mov byte [ebp - 4], 3
push eax
mov dword [ebp - 0x668], 3
call fcn.00459270
add esp, 8
test al, al
je 0x45b524
mov eax, dword [ebp - 0x634]
cmp eax, dword [edi + 8]
jne 0x45b524
cmp dword [ebp - 0x66c], 0
je 0x45b524
mov bl, 1
jmp 0x45b526
xor bl, bl
lea ecx, [ebp - 0x684]
mov dword [ebp - 4], 2
call fcn.0040a280
test bl, bl
je 0x45b5d9
push 2
push 0
push 0
lea eax, [ebp - 0x668]
mov dword [ebp - 0x668], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 0x66c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x45b5d9
push dword [ebp - 0x668]
call fcn.004a01f0
add esp, 4
test al, al
je 0x45b5cd
push dword [ebp - 0x66c]
cmp dword [ebp - 0x650], 8
lea eax, [ebp - 0x664]
push dword [edi + 8]
cmovae eax, dword [ebp - 0x664]
push eax
push str._s__u__p__d__s__d
lea eax, [ebp - 0x630]
push 0x209
push eax
call fcn.0040eae0
add esp, 0x18
test eax, eax
js 0x45b5cd
lea eax, [ebp - 0x630]
mov ecx, esi
push eax
call fcn.00440b97
mov bh, 1
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x650]
mov dword [ebp - 4], 4
cmp ecx, 8
jb 0x45b5fe
inc ecx
push ecx
push dword [ebp - 0x664]
lea ecx, [ebp - 0x664]
call fcn.0040a2e0
mov al, bh
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.00401682
mov esp, ebp
pop ebp
ret
push 0x5f4120
call fcn.00410499
add esp, 4
cmp dword [0x5f4120], 0xffffffff
jne 0x45b369
xor eax, eax
mov dword [0x5ed9c0], 0
push 0x57f760
mov dword [0x5ed9c4], 7
mov word [0x5ed9b0], ax
call fcn.00405ffc
push 0x5f4120
call fcn.00410720
add esp, 8
jmp 0x45b369