Function at 0x10058cf0
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1b8
push esi
push edi
push 0x10
push 0x10032970
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0xf
call fcn.1003ae40
push 0x28
push 0x10032984
lea ecx, [esp + 0xb0]
mov dword [esp + 0xb0], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0xf
call fcn.1003ae40
push 4
push 0x100329b0
lea ecx, [esp + 0x80]
mov dword [esp + 0x80], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0xf
call fcn.1003ae40
push 3
push 0x100329b8
lea ecx, [esp + 0x98]
mov dword [esp + 0x98], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0xf
call fcn.1003ae40
lea ecx, [esp + 0x78]
push ecx
lea eax, [esp + 0xac]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.100785e0
push 0x1003adf0
push 2
push 0x18
lea eax, [esp + 0x84]
push eax
call fcn.10079b58
call fcn.100804bf
add dword [0x10002790], eax
push 0x100329bc
call fcn.10081304
mov esi, dword [0x1009d164]
xor ecx, ecx
mov dword [0x10002794], eax
add esp, 4
mov dword [esp + 0x10], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [0x1009d168]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10058ea4
xor edi, edi
lea eax, [edi + esi]
push eax
lea ecx, [esp + 0x2c]
call fcn.1003d520
mov edx, dword [esp + 0x3c]
cmp edx, 0x10
jb 0x10058e78
mov ecx, dword [esp + 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10058e6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059689
push edx
push ecx
call fcn.10079b22
add esp, 8
mov ecx, dword [0x1009d168]
mov eax, 0x2aaaaaab
mov esi, dword [0x1009d164]
add edi, 0x18
inc dword [esp + 0x10]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x10058e35
cmp dword [0x1009d0fc], 0x10
mov ecx, 0x1009d0e8
mov esi, dword [0x1009d204]
mov edx, 0x1009d1f4
cmovae ecx, dword [0x1009d0e8]
cmp dword [0x1009d208], 0x10
cmovae edx, dword [0x1009d1f4]
cmp esi, dword [0x1009d0f8]
jne 0x10058f38
mov edi, esi
sub edi, 4
jb 0x10058ef1
nop
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x10058ef6
add edx, 4
add ecx, 4
sub edi, 4
jae 0x10058ee0
cmp edi, 0xfffffffc
je 0x10058f2a
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x10058f23
cmp edi, 0xfffffffd
je 0x10058f2a
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x10058f23
cmp edi, 0xfffffffe
je 0x10058f2a
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x10058f23
cmp edi, 0xffffffff
je 0x10058f2a
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x10058f2a
sbb eax, eax
or eax, 1
jmp 0x10058f2c
xor eax, eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x10058f40
mov dword [esp + 0x10], 1
cmp dword [0x1009d0b4], 0x10
mov ecx, 0x1009d0a0
mov edx, 0x1009d1f4
cmovae ecx, dword [0x1009d0a0]
cmp dword [0x1009d208], 0x10
cmovae edx, dword [0x1009d1f4]
cmp esi, dword [0x1009d0b0]
jne 0x10058fc8
sub esi, 4
jb 0x10058f84
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x10058f89
add edx, 4
add ecx, 4
sub esi, 4
jae 0x10058f73
cmp esi, 0xfffffffc
je 0x10058fbd
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x10058fb6
cmp esi, 0xfffffffd
je 0x10058fbd
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x10058fb6
cmp esi, 0xfffffffe
je 0x10058fbd
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x10058fb6
cmp esi, 0xffffffff
je 0x10058fbd
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x10058fbd
sbb eax, eax
or eax, 1
jmp 0x10058fbf
xor eax, eax
test eax, eax
jne 0x10058fc8
lea ecx, [eax + 1]
jmp 0x10058fca
xor ecx, ecx
mov eax, dword [0x10002798]
xor edx, edx
mov edi, dword [0x100027a0]
imul eax, edi
cmp dword [esp + 0x10], eax
mov eax, dword [0x10002790]
cmovg edx, ecx
mov ecx, dword [0x100027ac]
xor eax, 0xeee5
cmp edx, eax
mov eax, 0
mov edx, 0xeee5
setge al
mov dword [esp + 0x24], eax
mov eax, edi
xor eax, dword [0x10002790]
mov eax, 0
setg al
shl edx, cl
mov dword [esp + 0x10], eax
xor eax, eax
cmp dword [esp + 0x10], edx
setg al
cmp eax, dword [esp + 0x24]
je 0x1005909e
push 3
push 0x100329d8
lea ecx, [esp + 0x68]
mov dword [esp + 0x68], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0xf
call fcn.1003ae40
cmp dword [esp + 0x74], 0x10
lea eax, [esp + 0x60]
cmovae eax, dword [esp + 0x60]
mov byte [eax], 0
mov edx, dword [esp + 0x74]
cmp edx, 0x10
jb 0x10059098
mov ecx, dword [esp + 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005908e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059689
push edx
push ecx
call fcn.10079b22
add esp, 8
mov edi, dword [0x100027a0]
cmp dword [0x1009d0f8], 0
lea ecx, [esp + 0x28]
sete byte [esp + 0x17]
sub esp, 8
push 0x11172
sub esp, 0x10
push 0x1009d1a0
sub esp, 8
push dword [ebp + 0x24]
push dword [0x10002788]
push edi
sub esp, 8
push dword [ebp + 0x3c]
sub esp, 0x10
call fcn.1004c8a0
add esp, 0x50
cmp dword [eax + 0x14], 0x10
jb 0x100590e4
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [esp + 0x3c]
lea ecx, [esi + eax]
movzx eax, byte [esp + 0x17]
sub ecx, eax
add dword [0x100027c0], ecx
cmp edx, 0x10
jb 0x10059139
mov ecx, dword [esp + 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005912f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005967a
push edx
push ecx
call fcn.10079b22
add esp, 8
mov esi, dword [0x1009d094]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [0x1009d098]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100591d1
xor edi, edi
lea eax, [edi + esi]
push eax
lea ecx, [esp + 0x2c]
call fcn.1003d520
mov edx, dword [esp + 0x3c]
cmp edx, 0x10
jb 0x100591a5
mov ecx, dword [esp + 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005919b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059689
push edx
push ecx
call fcn.10079b22
add esp, 8
mov ecx, dword [0x1009d098]
mov eax, 0x2aaaaaab
mov esi, dword [0x1009d094]
add edi, 0x18
inc dword [esp + 0x10]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x10059162
cmp dword [0x1009d19c], 0x10
mov esi, 0x1009d188
mov edi, dword [0x1009d198]
cmovae esi, dword [0x1009d188]
test edi, edi
je 0x10059246
push 0x59
lea eax, [esp + 0xc4]
push 0
push eax
call fcn.1007b860
add esp, 0xc
lea eax, [esp + 0x11a]
push 0xa6
push 0
push eax
call fcn.1007b860
lea edx, [edi + esi]
mov byte [esp + 0x125], 1
add esp, 0xc
mov ecx, esi
cmp esi, edx
jae 0x10059246
nop word [eax + eax]
movzx eax, byte [ecx]
cmp byte [esp + eax + 0xc0], 0
jne 0x100593c3
inc ecx
cmp ecx, edx
jb 0x10059230
or ecx, 0xffffffff
mov esi, dword [0x100027b0]
sub esp, 0xc
sub esi, ecx
push dword [ebp + 0x50]
sub esp, 0x3c
call fcn.1003f9c0
mov edi, dword [ebp + 0x10]
add esp, 0x40
add esi, edi
sub esi, eax
push 0x1009d1d0
sub esp, 0x3c
call fcn.1003f9c0
add esp, 0x4c
add eax, esi
mov dword [0x100027b0], eax
lea eax, [esp + 0x40]
push dword [ebp + 0x34]
push 0x1009d0a0
push dword [ebp + 0x38]
push dword [ebp + 0x14]
push dword [ebp + 0x58]
push dword [0x1000278c]
push eax
mov eax, dword [ebp + 0xc]
push 0x1009d1f4
push dword [0x100027c0]
push 0x1009d188
push edi
push eax
push 0x1009d134
push eax
push dword [ebp + 0x4c]
lea eax, [esp + 0x7c]
push dword [ebp + 8]
push dword [ebp + 0x44]
push dword [ebp + 0x50]
push eax
push dword [ebp + 0x18]
push 0x1009d20c
call sym.desktop.d_nonconstruction
add esp, 0x54
mov esi, eax
push 0x100329e0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esi, dword [0x100027a0]
add eax, esi
xor eax, 0xe5
add dword [0x100027c0], eax
cmp dword [esp + 0x50], 0x95
jae 0x100593d4
push 0x1009d0b8
mov edx, 0x1009d1d0
lea ecx, [esp + 0x2c]
call fcn.100789e0
mov esi, eax
add esp, 4
lea eax, [esp + 0x40]
cmp eax, esi
je 0x10059395
mov edx, dword [esp + 0x54]
cmp edx, 0x10
jb 0x1005935c
mov ecx, dword [esp + 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10059352
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005967f
push edx
push ecx
call fcn.10079b22
add esp, 8
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0xf
mov byte [esp + 0x40], 0
movups xmm0, xmmword [esi]
movups xmmword [esp + 0x40], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [esp + 0x50], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [esp + 0x3c]
cmp edx, 0x10
jb 0x100593d4
mov ecx, dword [esp + 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100593ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005967f
jmp 0x100593ca
sub ecx, esi
jmp 0x10059249
push edx
push ecx
call fcn.10079b22
add esp, 8
push dword [esp + 0x24]
mov ecx, 0x1009d164
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.10078c90
cmp dword [0x1009d15c], 0x17
jae 0x1005958f
push 0x1009d1a0
push 0x1009d1a0
push 0x1009d100
mov edx, 0x1009d20c
lea ecx, [esp + 0x84]
call fcn.100789e0
add esp, 4
lea ecx, [esp + 0x30]
mov edx, eax
call fcn.10078930
add esp, 4
lea ecx, [esp + 0x64]
mov edx, eax
call fcn.10078930
mov esi, eax
add esp, 4
cmp esi, 0x1009d14c
je 0x100594c0
mov ecx, dword [0x1009d160]
cmp ecx, 0x10
jb 0x1005947d
mov eax, dword [0x1009d14c]
inc ecx
cmp ecx, 0x1000
jb 0x10059473
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059684
mov eax, edx
push ecx
push eax
call fcn.10079b22
add esp, 8
mov dword [0x1009d15c], 0
mov dword [0x1009d160], 0xf
mov byte [0x1009d14c], 0
movups xmm0, xmmword [esi]
movups xmmword [0x1009d14c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x1009d15c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [esp + 0x74]
cmp edx, 0x10
jb 0x100594f6
mov ecx, dword [esp + 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100594ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059684
push edx
push ecx
call fcn.10079b22
add esp, 8
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0xf
mov byte [esp + 0x60], 0
cmp edx, 0x10
jb 0x10059541
mov ecx, dword [esp + 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10059537
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059684
push edx
push ecx
call fcn.10079b22
add esp, 8
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0xf
mov byte [esp + 0x28], 0
cmp edx, 0x10
jb 0x1005958f
mov ecx, dword [esp + 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10059585
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059684
push edx
push ecx
call fcn.10079b22
add esp, 8
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10059605
mov edx, dword [esp + 0x1c]
push ecx
call fcn.1003b800
mov ecx, dword [esp + 0x24]
mov eax, 0x2aaaaaab
mov esi, dword [esp + 0x1c]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x100595e3
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059689
push ecx
push esi
call fcn.10079b22
add esp, 8
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov edx, dword [esp + 0xbc]
cmp edx, 0x10
jb 0x1005963d
mov ecx, dword [esp + 0xa8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10059633
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059689
push edx
push ecx
call fcn.10079b22
add esp, 8
mov edx, dword [esp + 0x54]
cmp edx, 0x10
jb 0x1005966f
mov ecx, dword [esp + 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10059665
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059689
push edx
push ecx
call fcn.10079b22
add esp, 8
pop edi
mov eax, 0x11172
pop esi
mov esp, ebp
pop ebp
ret
call fcn.1007e1df
call fcn.1007e1df
call fcn.1007e1df
call fcn.1007e1df
int3