Function at 0x40c320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x274
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x6c], edi
call fcn.0041dc60
mov eax, dword [edi + 0x20]
lea ecx, [edi + 0x20]
lea edx, [esp + 0x2c]
xor ebp, ebp
push edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call dword [eax + 0x2c]
mov esi, dword [edi + 4]
add edi, 0xa4
mov dword [esp + 0x4c], edi
call fcn.0040cbb0
cmp dword [eax + 0x30], ebp
jne 0x40c377
call fcn.0040cbb0
mov dword [eax + 0x30], ebp
call fcn.0040cbb0
lea ecx, [edi + 0x1c]
push ecx
push eax
push 0x491810
call fcn.0040cf00
push ebp
push eax
push 0x82
push ebp
push 0x50000000
lea edx, [esp + 0x40]
push str.InstallResultList
push edx
push esi
mov ecx, edi
call fcn.0040d250
test eax, eax
jne 0x40c3c3
lea ecx, [esp + 0x3c]
call fcn.0041dc80
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x274
ret
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
sub edx, eax
push ebp
lea ecx, [esp + 0x30]
mov dword [esp + 0x38], edx
mov dword [esp + 0x30], ebp
call fcn.0040d300
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x80]
mov dword [esp + 0x20], eax
push 0x100
add eax, 0x14
push edx
mov dword [esp + 0x30], ecx
push 0x9c
mov dword [esp + 0x34], eax
call fcn.00403a10
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x40c45a
lea edx, [esp + 0x80]
test edx, edx
jne 0x40c438
xor eax, eax
jmp 0x40c446
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x80]
push ecx
push eax
lea ecx, [esp + 0x48]
call fcn.00403710
jmp 0x40c4a8
push 0x1ff
lea ecx, [esp + 0x44]
mov esi, 0x200
call fcn.004034f0
cmp eax, ebp
je 0x40c49d
push esi
push eax
push 0x9c
call fcn.00403a10
mov edx, esi
sub edx, eax
cmp edx, 1
jg 0x40c49d
add esi, 0x100
lea ecx, [esp + 0x40]
lea eax, [esi - 1]
push eax
call fcn.004034f0
cmp eax, ebp
jne 0x40c471
push 0xffffffffffffffff
lea ecx, [esp + 0x44]
call fcn.004035b0
push 1
push 1
lea ecx, [esp + 0x24]
push ebp
lea edx, [esp + 0x48]
push ecx
push edx
mov ecx, edi
call fcn.00415dc0
mov ecx, 0x4917e8
call fcn.00420130
mov ecx, eax
mov dword [esp + 0x54], eax
call fcn.0040d6d0
cmp eax, ebp
mov dword [esp + 0x18], eax
jg 0x40c4f0
lea ecx, [esp + 0x3c]
call fcn.0041dc80
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x274
ret
mov eax, dword [0x4881a0]
xor edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, ebp
mov dword [esp + 0x5c], ebp
jle 0x40c6a1
mov ecx, dword [esp + 0x58]
push edi
call fcn.0040da10
mov esi, eax
cmp esi, ebp
je 0x40c694
mov ecx, esi
call fcn.0040a0e0
test eax, eax
jne 0x40c5e2
mov eax, dword [esp + 0x18]
cmp dword [eax - 8], ebp
jne 0x40c5a1
mov ecx, esi
call fcn.0040a0f0
mov ecx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esi + 8]
add esi, 8
cmp ecx, eax
je 0x40c694
cmp dword [ecx - 0xc], ebp
jge 0x40c56f
mov edx, dword [0x4881a4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x40c574
cmp dword [eax - 0xc], ebp
jge 0x40c587
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00403710
jmp 0x40c694
lea ecx, [esp + 0x18]
call fcn.004039a0
mov esi, dword [esi]
mov dword [esp + 0x18], esi
add esi, 0xfffffff4
push esi
call ebx
jmp 0x40c694
mov edx, 0x4890d4
test edx, edx
jne 0x40c5ae
xor eax, eax
jmp 0x40c5b9
push 0x4890d4
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4890d4
push eax
lea ecx, [esp + 0x20]
call fcn.004037d0
mov ecx, esi
call fcn.0040a0f0
add eax, 8
lea ecx, [esp + 0x18]
mov eax, dword [eax]
push eax
mov eax, dword [eax - 8]
push eax
jmp 0x40c68f
mov ecx, esi
call fcn.0040a110
test eax, eax
je 0x40c694
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x5c], 1
cmp dword [ecx - 8], ebp
jne 0x40c657
mov ecx, esi
call fcn.0040a0f0
mov ecx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esi + 8]
add esi, 8
cmp ecx, eax
je 0x40c694
cmp dword [ecx - 0xc], ebp
jge 0x40c62b
mov edx, dword [0x4881a4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x40c630
cmp dword [eax - 0xc], ebp
jge 0x40c640
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00403710
jmp 0x40c694
lea ecx, [esp + 0x14]
call fcn.004039a0
mov esi, dword [esi]
mov dword [esp + 0x14], esi
add esi, 0xfffffff4
push esi
call ebx
jmp 0x40c694
mov eax, 0x4890d4
test eax, eax
je 0x40c66b
push 0x4890d4
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4890d4
push eax
lea ecx, [esp + 0x1c]
call fcn.004037d0
mov ecx, esi
call fcn.0040a0f0
add eax, 8
mov eax, dword [eax]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004037d0
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x40c516
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebx, dword [sym.imp.USER32.dll_OffsetRect]
cmp dword [edx - 8], ebp
je 0x40c83b
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
sub eax, edx
lea ecx, [esp + 0x20]
push eax
push ebp
push ecx
call ebx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x2c]
add eax, 0x14
mov dword [esp + 0x68], ecx
mov ecx, dword [0x4917e0]
mov dword [esp + 0x60], eax
mov eax, dword [0x4881a0]
mov dword [esp + 0x6c], edx
lea edx, [esp + 0x84]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 8]
push 0x100
push edx
push 0xaa
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
cmp eax, ebp
jne 0x40c72b
mov word [esp + 0x84], bp
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x40c74a
lea edx, [esp + 0x84]
lea ecx, [esp + 0x10]
push edx
call fcn.00402c90
jmp 0x40c798
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.004034f0
cmp eax, ebp
je 0x40c78d
push esi
push eax
push 0xaa
call fcn.00403a10
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x40c78d
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.004034f0
cmp eax, ebp
jne 0x40c761
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.004035b0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.004037d0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x40c7f8
cmp dword [eax - 0xc], ebp
jge 0x40c7c8
mov edx, dword [0x4881a4]
add eax, 0xfffffff4
cmp eax, edx
jne 0x40c7cd
cmp dword [ecx - 0xc], ebp
jge 0x40c7dd
push ecx
mov ecx, dword [ecx - 8]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00403710
jmp 0x40c7f8
lea ecx, [esp + 0x44]
call fcn.004039a0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x50]
push 1
push 1
lea edx, [esp + 0x68]
push ebp
lea eax, [esp + 0x4c]
push edx
push eax
call fcn.00415dc0
mov eax, dword [esp + 0x10]
mov edx, dword [0x4881a4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40c83b
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x40c83b
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004472d3
add esp, 4
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], ebp
je 0x40c9d0
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
sub ecx, esi
lea edx, [esp + 0x20]
push ecx
push ebp
push edx
call ebx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
add ecx, 0x14
mov dword [esp + 0x60], eax
add eax, 0x14
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x84]
mov dword [esp + 0x60], eax
mov eax, dword [0x4881a0]
push 0x100
push ecx
push 0x9d
mov dword [esp + 0x74], edx
mov dword [esp + 0x1c], eax
call fcn.00403a10
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x40c8de
lea eax, [esp + 0x84]
test eax, eax
je 0x40c8ca
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x84]
lea ecx, [esp + 0x10]
push edx
push eax
call fcn.00403710
jmp 0x40c92c
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.004034f0
cmp eax, ebp
je 0x40c921
push esi
push eax
push 0x9d
call fcn.00403a10
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x40c921
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.004034f0
cmp eax, ebp
jne 0x40c8f5
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.004035b0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.004037d0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x40c98c
cmp dword [eax - 0xc], ebp
jge 0x40c95c
mov edx, dword [0x4881a4]
add eax, 0xfffffff4
cmp eax, edx
jne 0x40c961
cmp dword [ecx - 0xc], ebp
jge 0x40c971
push ecx
mov ecx, dword [ecx - 8]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00403710
jmp 0x40c98c
lea ecx, [esp + 0x44]
call fcn.004039a0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x50]
push 1
push 1
lea edx, [esp + 0x68]
push 0x30
lea eax, [esp + 0x4c]
push edx
push eax
call fcn.00415dc0
mov eax, dword [esp + 0x10]
mov edx, dword [0x4881a4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40c9d0
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x40c9d0
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004472d3
add esp, 4
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
add eax, 0x50
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], ecx
add eax, 0x14
mov dword [esp + 0x80], edx
add ecx, 0xa
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x74], ecx
add ecx, 0xc8
cmp eax, ebp
mov dword [esp + 0x7c], ecx
je 0x40caeb
mov eax, dword [0x4881a0]
lea ecx, [esp + 0x84]
push 0x100
push ecx
push 0x9e
mov dword [esp + 0x1c], eax
call fcn.00403a10
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x40ca5c
lea eax, [esp + 0x84]
lea ecx, [esp + 0x10]
push eax
call fcn.00402c90
jmp 0x40caaa
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.004034f0
cmp eax, ebp
je 0x40ca9f
push esi
push eax
push 0x9e
call fcn.00403a10
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x40ca9f
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.004034f0
cmp eax, ebp
jne 0x40ca73
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.004035b0
lea eax, [esp + 0x10]
push ebp
lea ecx, [esp + 0x78]
push eax
push ecx
mov ecx, dword [esp + 0x7c]
push 0x7e
call fcn.0040cc10
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4881a4]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40caeb
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x40caeb
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004472d3
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x4881a0]
xor edi, edi
cmp eax, ebp
mov dword [esp + 0x54], ecx
jle 0x40cb72
mov ecx, dword [esp + 0x58]
push edi
call fcn.0040da10
mov esi, eax
cmp esi, ebp
je 0x40cb69
mov ecx, esi
call fcn.0040a0e0
test eax, eax
je 0x40cb69
push 0x14
lea edx, [esp + 0x78]
push ebp
push edx
call ebx
mov ecx, esi
call fcn.0040a0f0
mov eax, dword [eax + 8]
lea ecx, [esp + 0x54]
push eax
push 0x9f
push ecx
call fcn.0040d320
add esp, 0xc
mov ecx, esi
call fcn.0040a0f0
mov edx, dword [eax + 0x84]
lea eax, [esp + 0x54]
push edx
lea ecx, [esp + 0x78]
push eax
lea edx, [edi + 0x2968]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
call fcn.0040cc10
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x40caff
mov ecx, dword [esp + 0x50]
call fcn.00415610
lea ecx, [esp + 0x54]
call fcn.00403680
lea ecx, [esp + 0x18]
call fcn.00403680
lea ecx, [esp + 0x14]
call fcn.00403680
lea ecx, [esp + 0x40]
call fcn.0041dc80
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x274
ret