Function at 0x43b670
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518a3c
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x56f790]
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 edi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x230], eax
test edi, edi
je 0x43b96d
test esi, esi
je 0x43b96d
xor eax, eax
cmp ax, word [esi]
je 0x43b96d
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004b17e0
add esp, 0xc
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
cmp dword [ebp + 0x18], 0
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0
je 0x43b718
push 0x20119
jmp 0x43b71d
push 0x20219
push esi
push edi
call fcn.00419020
test eax, eax
jne 0x43b956
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
lea ecx, [ebp - 0x22c]
call fcn.0043c4b0
test eax, eax
jne 0x43b956
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004093d0
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.0043d890
lea ecx, [ebp - 0x21c]
call fcn.0043d940
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
jne 0x43b7a2
lea ecx, [ebp - 0x21c]
xor esi, esi
call fcn.00408250
jmp 0x43b958
push 1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00421ea0
mov ecx, 0x52f1c8
mov eax, dword [eax]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43b7e6
test dx, dx
je 0x43b7e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43b7e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x43b7c0
xor esi, esi
jmp 0x43b7eb
sbb esi, esi
or esi, 1
lea ecx, [ebp - 0x220]
call fcn.00408250
test esi, esi
jne 0x43b836
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x21c]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0040deb0
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.00408360
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.00408250
push 1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040deb0
mov ecx, 0x52f1c8
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43b877
test dx, dx
je 0x43b873
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43b877
add eax, 4
add ecx, 4
test dx, dx
jne 0x43b851
xor esi, esi
jmp 0x43b87c
sbb esi, esi
or esi, 1
lea ecx, [ebp - 0x220]
call fcn.00408250
test esi, esi
jne 0x43b8c7
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x21c]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00421ea0
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
call fcn.00408360
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.00408250
mov ebx, dword [ebp - 0x230]
test ebx, ebx
je 0x43b93b
cmp word [ebx], 0
je 0x43b93b
mov edx, dword [ebp - 0x21c]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or ecx, eax
jge 0x43b907
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.00407ee0
mov edx, dword [ebp - 0x21c]
cmp dword [edx - 8], 0x104
jl 0x43b98b
mov dword [edx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [ebp - 0x21c]
push ebx
push edx
mov word [eax + 0x208], cx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.0043cad0
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x21c]
mov esi, eax
call fcn.00408250
jmp 0x43b958
xor esi, esi
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x43b969
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x43b96f
xor eax, eax
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.004ac4b8
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00404400
int3