Function at 0x499ff0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd5f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x554]
mov dword [ebp - 0x14], esi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x49a54e
push edi
call fcn.0049c720
mov eax, dword [esi + 0x554]
xor ecx, ecx
mov dword [eax + 0x1c], 1
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x20], di
mov eax, dword [0x682588]
mov byte [ebp - 4], 1
cmp eax, edi
mov esi, eax
jne 0x49a05f
mov esi, 0x68258c
mov edx, 0x656fdc
test edx, edx
je 0x49a167
cmp esi, edi
je 0x49a167
mov eax, str.IDMGrHlp.exe
test eax, eax
je 0x49a167
push edx
lea ecx, [ebp - 0x58]
call fcn.00401e50
mov bl, 2
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00403ad0
push str.IDMGrHlp.exe
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00403ad0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.00401070
mov edi, dword [ebp - 0x40]
test edi, edi
jne 0x49a0bf
lea edi, [ebp - 0x3c]
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x30]
call fcn.00401ed0
push eax
call fcn.00584816
mov edx, eax
push edi
mov dword [ebp - 0x34], edx
call fcn.00584816
mov ecx, dword [ebp - 0x34]
add esi, ecx
lea esi, [eax + esi + 3]
lea edi, [esi + esi]
push edi
call fcn.0059cff9
mov edx, eax
add esp, 0xc
test edx, edx
mov dword [ebp - 0x24], edx
je 0x49a141
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x30]
call fcn.00401ed0
push eax
lea ecx, [ebp - 0x40]
call fcn.00401ed0
push eax
lea ecx, [ebp - 0x58]
call fcn.00401ed0
push eax
mov eax, dword [ebp - 0x24]
push esi
push eax
call fcn.005847a6
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00584816
add esp, 0x18
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00401070
mov ecx, dword [ebp - 0x24]
xor esi, esi
mov eax, ecx
cmp ecx, esi
jne 0x49a172
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49a4db
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x3c], si
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 5
cmp eax, esi
jne 0x49a1a3
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x48]
push edx
lea edx, [ebp - 0x4c]
push ecx
push edx
push eax
call fcn.0048dc20
add esp, 0x10
cmp eax, esi
je 0x49a27b
mov eax, dword [ebp - 0x4c]
cmp eax, 6
jg 0x49a1e6
jne 0x49a27b
mov eax, dword [ebp - 0x48]
cmp eax, 6
jg 0x49a1e6
jne 0x49a27b
cmp dword [ebp - 0x34], 7
jl 0x49a27b
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x478]
cmp eax, esi
jne 0x49a1f9
lea eax, [ecx + 0x47c]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
mov esi, eax
test esi, esi
jle 0x49a27b
mov eax, dword [0x67da2c]
mov dword [ebp - 0x44], eax
push esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.005a102a
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x478]
test ecx, ecx
jne 0x49a241
lea ecx, [edx + 0x47c]
push 0
push 0
push esi
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call edi
test eax, eax
je 0x49a26f
mov ecx, dword [ebp - 0x44]
push 0
push ecx
lea ecx, [ebp - 0x40]
call fcn.00402800
mov dword [0x68299c], 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.005a0c5d
mov edx, dword [0x67da2c]
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0xb4]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xb4], 0x44
mov dword [ebp - 0x88], 1
mov word [ebp - 0x84], 5
mov dword [ebp - 0x18], edx
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], edi
mov word [ebp - 0x2c], di
mov eax, dword [0x6824ac]
mov byte [ebp - 4], 8
cmp eax, edi
mov eax, dword [0x68299c]
je 0x49a324
cmp eax, edi
mov eax, 0x65f2c8
jne 0x49a2dc
mov eax, 0x65f2c4
mov ecx, dword [0x682e98]
mov edx, dword [0x682e9c]
mov esi, dword [ebp - 0x14]
push ecx
mov ecx, dword [0x682ea0]
push edx
mov edx, dword [0x682ea4]
push ecx
mov ecx, dword [esi + 0x464]
push edx
mov edx, dword [esi + 0x484]
push ecx
push edx
push eax
mov eax, dword [esi + 0x568]
lea ecx, [ebp - 0x18]
push eax
push str.___s___a_1__w__ld__i_2000000000___s____s___ct___s___u___s___cp___s___lb___s___ok___s___cb___s_
push ecx
call fcn.00599a28
add esp, 0x28
jmp 0x49a35c
cmp eax, edi
mov eax, 0x65f2c8
jne 0x49a332
mov eax, 0x65f2c4
mov esi, dword [ebp - 0x14]
mov edx, dword [esi + 0x464]
mov ecx, dword [esi + 0x484]
push edx
mov edx, dword [esi + 0x568]
push ecx
push eax
push edx
lea eax, [ebp - 0x18]
push str.___s___a_1__w__ld__i_2000000000___s____s___ct___s___u___s_
push eax
call fcn.00599a28
add esp, 0x18
cmp dword [0x68299c], edi
je 0x49a370
mov esi, dword [ebp - 0x40]
test esi, esi
jne 0x49a387
lea esi, [ebp - 0x3c]
jmp 0x49a387
mov eax, dword [esi + 0x478]
cmp eax, edi
je 0x49a37e
mov esi, eax
jmp 0x49a387
mov ecx, dword [ebp - 0x14]
lea esi, [ecx + 0x47c]
mov edi, dword [ebp - 0x24]
test edi, edi
jne 0x49a391
lea edi, [ebp - 0x20]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x49a486
test edi, edi
je 0x49a486
test esi, esi
je 0x49a486
push eax
lea ecx, [ebp - 0x64]
call fcn.00401e50
push edi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00403ad0
mov bl, 0xa
push esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.00403ad0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xb
call fcn.00401070
mov esi, dword [ebp - 0x5c]
lea ecx, [ebp - 0x58]
call fcn.00401ed0
push eax
call fcn.00584816
add esp, 4
lea ecx, [ebp - 0x70]
mov edi, eax
call fcn.00401ed0
push eax
call fcn.00584816
add esi, edi
lea esi, [eax + esi + 3]
lea edi, [esi + esi]
push edi
call fcn.0059cff9
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x30], edx
je 0x49a463
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x58]
call fcn.00401ed0
push eax
lea ecx, [ebp - 0x70]
call fcn.00401ed0
push eax
lea ecx, [ebp - 0x64]
call fcn.00401ed0
push eax
mov eax, dword [ebp - 0x30]
push esi
push eax
call fcn.005847a6
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00584816
add esp, 0x18
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00401070
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 8
call fcn.00401070
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x49a490
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0xc4]
lea ecx, [ebp - 0xb4]
push edx
push ecx
push 0
push 0
push 0x30
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30]
je 0x49a525
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.005a0c5d
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401070
mov esi, dword [ebp - 0x14]
push 0
mov ebx, dword [esi + 0x554]
call fcn.00585f73
mov edx, dword [esi + 0x554]
add esi, 0x540
add esp, 4
mov dword [edx + 0x20], eax
mov eax, dword [esi + 0x14]
push 0xffffffffffffffff
mov byte [eax + 0x24], 1
mov edi, dword [esi + 8]
lea ecx, [edi + 1]
push ecx
mov ecx, esi
call fcn.004a6650
mov edx, dword [esi + 4]
mov eax, 0x77359400
mov dword [edx + edi*8], eax
mov dword [edx + edi*8 + 4], ebx
jmp 0x49a542
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.005a0c5d
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret