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

Disassembly:
push 0xffffffffffffffff
push 0x414010
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x41b5c0]
push ebx
push ebp
push esi
mov dword [esp + 0x124], eax
push edi
mov esi, dword [esp + 0x13c]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push ecx
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x138], ebx
call fcn.00406fe0
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], ebx
mov dword [eax], eax
mov esi, dword [esi + 4]
push 0x78
mov dword [esi + 8], esi
call fcn.00412892
add esp, 4
mov dword [esp + 0x3c], eax
cmp eax, ebx
mov byte [esp + 0x134], 1
je 0x40c272
mov ecx, eax
call fcn.0040f6a0
mov esi, eax
jmp 0x40c274
xor esi, esi
cmp esi, ebx
mov byte [esp + 0x134], bl
je 0x40c2e5
cmp dword [esp + 0x158], ebx
jne 0x40c2b3
mov eax, dword [esp + 0x140]
cmp dword [eax + 0x18], 0x10
jb 0x40c2a4
mov eax, dword [eax + 4]
mov edx, dword [esi]
push ebx
push ebx
push eax
mov ecx, esi
call dword [edx + 8]
jmp 0x40c2d8
mov edx, dword [esi]
push ebx
add eax, 4
push ebx
push eax
mov ecx, esi
call dword [edx + 8]
jmp 0x40c2d8
cmp dword [esp + 0x15c], 0x10
mov eax, dword [esp + 0x148]
jae 0x40c2cb
lea eax, [esp + 0x148]
push ebx
push eax
mov ecx, esi
call fcn.0040f7b0
cmp al, bl
je 0x40c2e5
mov ecx, esi
call fcn.0040e8a0
mov esi, eax
cmp esi, ebx
jne 0x40c304
lea ecx, [esp + 0x144]
mov dword [esp + 0x134], 0xffffffff
call dword [0x41515c]
xor al, al
jmp 0x40c895
push str.productlist
lea ecx, [esp + 0xd8]
mov dword [esp + 0x38], ebx
call dword [0x41516c]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xd8]
push ecx
push esi
mov byte [esp + 0x140], 2
call fcn.0040b6b0
mov ecx, dword [esp + 0x40]
add esp, 0xc
cmp ecx, ebx
je 0x40c867
call fcn.0040e8a0
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x40c867
jmp 0x40c360
mov eax, dword [esp + 0x14]
jmp 0x40c360
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], ebx
mov esi, dword [eax + 0x94]
add eax, 0x44
xor edx, edx
cmp esi, eax
sete dl
push str.updatefilelist
lea ecx, [esp + 0xf4]
mov byte [esp + 0x138], 4
mov dword [esp + 0x3c], ebx
dec edx
and edx, esi
mov dword [esp + 0x40], edx
call dword [0x41516c]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xf4]
push ecx
push edx
mov byte [esp + 0x140], 5
call fcn.0040b6b0
mov ecx, dword [esp + 0x44]
add esp, 0xc
cmp ecx, ebx
je 0x40c520
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x134], 6
call fcn.0040e8a0
mov edi, eax
cmp edi, ebx
je 0x40c4f9
lea ecx, [esp + 0x24]
call fcn.00401be0
mov dword [esp + 0x28], eax
mov byte [eax + 0x45], 1
mov eax, dword [esp + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x28]
mov dword [eax], eax
mov eax, dword [esp + 0x28]
mov dword [eax + 8], eax
mov dword [esp + 0x2c], ebx
mov ecx, edi
mov byte [esp + 0x134], 7
call fcn.0040e8a0
mov esi, eax
cmp esi, ebx
je 0x40c4a7
mov ecx, esi
call fcn.0040e990
push eax
sub esp, 0x1c
lea eax, [esi + 0x20]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call dword [0x415158]
lea ecx, [esp + 0xa0]
push ecx
call fcn.00409b80
add esp, 0x20
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x13c], 8
call fcn.00402530
mov ecx, eax
call dword [0x4151bc]
lea ecx, [esp + 0x80]
mov byte [esp + 0x134], 7
call dword [0x41515c]
mov ecx, esi
call fcn.0040e8d0
mov esi, eax
cmp esi, ebx
jne 0x40c440
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x74]
call fcn.004068e0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x140], 6
call fcn.00402670
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00412910
add esp, 4
mov ecx, edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.0040e8d0
mov edi, eax
cmp edi, ebx
jne 0x40c402
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x54]
call fcn.00402b20
lea ecx, [esp + 0x70]
mov byte [esp + 0x134], 5
call fcn.00402940
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x64]
push str.patchfilelist
lea ecx, [esp + 0x110]
mov dword [esp + 0x34], ebx
call dword [0x41516c]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x110]
push ecx
push edx
mov byte [esp + 0x140], 9
call fcn.0040b6b0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
cmp ecx, ebx
je 0x40c700
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x134], 0xa
call fcn.0040e8a0
mov edi, eax
cmp edi, ebx
je 0x40c691
jmp 0x40c590
lea ecx, [esp + 0x18]
call fcn.00401be0
mov dword [esp + 0x1c], eax
mov byte [eax + 0x45], 1
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [eax], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], eax
mov dword [esp + 0x20], ebx
mov ecx, edi
mov byte [esp + 0x134], 0xb
call fcn.0040e8a0
mov esi, eax
cmp esi, ebx
je 0x40c637
mov edi, edi
mov ecx, esi
call fcn.0040e990
push eax
sub esp, 0x1c
lea eax, [esi + 0x20]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call dword [0x415158]
lea ecx, [esp + 0xbc]
push ecx
call fcn.00409b80
add esp, 0x20
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x13c], 0xc
call fcn.00402530
mov ecx, eax
call dword [0x4151bc]
lea ecx, [esp + 0x9c]
mov byte [esp + 0x134], 0xb
call dword [0x41515c]
mov ecx, esi
call fcn.0040e8d0
mov esi, eax
cmp esi, ebx
jne 0x40c5d0
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x44]
call fcn.004068e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x140], 0xa
call fcn.00402670
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00412910
add esp, 4
mov ecx, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.0040e8d0
mov edi, eax
cmp edi, ebx
jne 0x40c590
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x64]
call fcn.00402b20
cmp esi, ebx
mov byte [esp + 0x134], 9
je 0x40c6ec
cmp esi, ebp
je 0x40c6e3
add esi, 4
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi - 4]
call fcn.00402670
mov eax, dword [esi]
push eax
call fcn.00412910
mov dword [esi], ebx
mov dword [esi + 4], ebx
add esi, 0xc
lea ecx, [esi - 4]
add esp, 4
cmp ecx, ebp
jne 0x40c6b2
mov esi, dword [esp + 0x44]
push esi
call fcn.00412910
add esp, 4
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov edx, dword [esp + 0x3c]
sub esp, 0x1c
add edx, 0x30
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call dword [0x415158]
lea eax, [esp + 0xd4]
push eax
call fcn.00409b80
add esp, 0x20
mov ecx, dword [esp + 0x13c]
push eax
mov byte [esp + 0x138], 0xd
call fcn.004071e0
lea ecx, [esp + 0x50]
mov esi, eax
push ecx
mov ecx, esi
call fcn.00402b20
lea edx, [esp + 0x60]
push edx
lea ecx, [esi + 0x10]
call fcn.00402b20
lea ecx, [esp + 0xb8]
mov byte [esp + 0x134], 9
call dword [0x41515c]
lea ecx, [esp + 0x10c]
mov byte [esp + 0x134], 5
call dword [0x41515c]
lea ecx, [esp + 0xf0]
mov byte [esp + 0x134], 4
call dword [0x41515c]
cmp ebp, ebx
mov byte [esp + 0x134], 0xe
je 0x40c7e6
cmp ebp, edi
je 0x40c7dd
lea esi, [ebp + 4]
lea esp, [esp]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi - 4]
call fcn.00402670
mov eax, dword [esi]
push eax
call fcn.00412910
mov dword [esi], ebx
mov dword [esi + 4], ebx
add esi, 0xc
lea ecx, [esi - 4]
add esp, 4
cmp ecx, edi
jne 0x40c7b0
push ebp
call fcn.00412910
add esp, 4
mov ebp, dword [esp + 0x54]
cmp ebp, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x134], 2
je 0x40c846
mov edi, dword [esp + 0x58]
cmp ebp, edi
je 0x40c83d
lea esi, [ebp + 4]
lea ecx, [ecx]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esi - 4]
call fcn.00402670
mov eax, dword [esi]
push eax
call fcn.00412910
mov dword [esi], ebx
mov dword [esi + 4], ebx
add esi, 0xc
lea eax, [esi - 4]
add esp, 4
cmp eax, edi
jne 0x40c810
push ebp
call fcn.00412910
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call fcn.0040e8d0
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x40c357
lea ecx, [esp + 0xd4]
mov byte [esp + 0x134], bl
call dword [0x41515c]
lea ecx, [esp + 0x144]
mov dword [esp + 0x134], 0xffffffff
call dword [0x41515c]
mov al, 1
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x128]
call fcn.00412959
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret