Function at 0x437970
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5370
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
lea ecx, [ebp - 0x5c]
call fcn.0041c970
mov dword [ebp - 4], 0
push dword [ebp - 0x5c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
or esi, 0xffffffff
test eax, eax
je 0x437c2e
push 0xc
xor eax, eax
mov dword [ebp - 0x44], 7
push str.regsvr32.exe
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00439160
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0048e100
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x4379fb
mov eax, dword [eax]
lea ecx, [ebp - 0x58]
mov edx, eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00438720
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x437a14
mov eax, dword [eax]
push eax
call edi
mov ecx, dword [ebp - 0x14]
mov edi, eax
cmp ecx, 8
jb 0x437a2e
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x437a57
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x437a83
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00433600
test edi, edi
je 0x437bb5
push str.regsvr32.exe
lea ecx, [ebp - 0x58]
call fcn.00438660
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 3
push eax
mov edx, 0x4eecc4
lea ecx, [ebp - 0x64]
call fcn.00438410
push 0x4eecc0
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x60]
call fcn.0041c010
add esp, 8
mov edi, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.0048e100
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x437add
mov eax, dword [eax]
lea ecx, [ebp - 0x58]
mov edx, eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.00438720
add esp, 4
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x437afa
mov eax, dword [eax]
mov edx, dword [edi]
mov ecx, eax
push 0
push 0
push 0
call fcn.00490130
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp eax, 8
jb 0x437b21
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x437b4a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00433600
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x60]
mov word [ebp - 0x28], ax
add edx, 0xfffffff0
mov dword [ebp - 0x14], 7
mov eax, esi
mov dword [ebp - 0x18], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x437b7c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x64]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x437b9a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x437c2e
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00433600
jmp 0x437c2e
lea eax, [ebp - 0x5c]
mov edx, 0x4eecc4
push eax
lea ecx, [ebp - 0x60]
call fcn.00438410
push 0x4eecc0
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x64]
call fcn.0041c010
push 0
mov byte [ebp - 4], 9
mov ecx, str.regsvr32
mov edx, dword [eax]
push 0
push 0
call fcn.00490130
mov byte [ebp - 4], 8
add esp, 0x14
mov edx, dword [ebp - 0x64]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x437c10
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x60]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x437c2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x437c4d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret