Function at 0x490130
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526a05
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x56f28c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], 0x80004005
mov dword [ebp - 0x14], 0x80004005
lea ecx, [ebp - 0x1c]
call fcn.004457d0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x48], 0
je 0x490191
jmp 0x49034b
xor ecx, ecx
jne 0x490183
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x2c]
call fcn.00490470
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00418990
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004458f0
lea ecx, [ebp - 0x1c]
call fcn.0046ade0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4901ef
lea ecx, [ebp - 0x1c]
call fcn.0046ade0
push eax
call fcn.004956d0
add esp, 4
jmp 0x490352
lea ecx, [ebp - 0x1c]
call fcn.0046ade0
push eax
call fcn.0044e6d0
add esp, 4
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x44], 0
jne 0x49021e
cmp dword [0x573570], 0
je 0x490219
int3
jmp 0x490352
xor ecx, ecx
jne 0x490206
push str.CreateWLAP
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x49024c
cmp dword [0x573570], 0
je 0x490247
int3
jmp 0x490352
xor ecx, ecx
jne 0x490237
mov edx, dword [ebp - 0x2c]
add edx, 0x48
push edx
call dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x490272
cmp dword [0x573570], 0
je 0x49026d
int3
jmp 0x490352
xor eax, eax
jne 0x49025d
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x48], 0
jne 0x49028e
cmp dword [0x573570], 0
je 0x490289
int3
jmp 0x490352
xor edx, edx
jne 0x490276
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x48]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x48]
mov ecx, dword [ecx]
push eax
mov edx, dword [ecx + 0xc]
call edx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x4902be
cmp dword [0x573570], 0
je 0x4902b9
int3
jmp 0x490352
xor eax, eax
jne 0x4902a9
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x48]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x48]
mov eax, dword [eax]
push edx
mov ecx, dword [eax + 0x14]
call ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x4902f6
cmp dword [0x573570], 0
je 0x4902f4
int3
jmp 0x490352
xor edx, edx
jne 0x4902e4
cmp dword [ebp - 0x2c], 0
je 0x49030b
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x38], eax
jmp 0x490312
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x48]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x48]
mov eax, dword [eax]
push edx
mov ecx, dword [eax + 0x18]
call ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x49033f
cmp dword [0x573570], 0
je 0x49033d
int3
jmp 0x490352
xor edx, edx
jne 0x49032d
mov ecx, dword [ebp - 0x2c]
call fcn.00492da0
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0
jge 0x4903bf
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x48], 0
je 0x49039f
cmp dword [ebp - 0x10], 0
je 0x490382
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x48]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x48]
mov edx, dword [edx]
push ecx
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x48]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x48]
mov edx, dword [edx]
push ecx
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x48], 0
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x44], 0
je 0x4903bf
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x44], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004458f0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret