Function at 0x40cd05
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov al, byte [0x4131e0]
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
push 0x40
mov byte [ebp - 0x18c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x18b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x18
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x87]
mov byte [ebp - 0x88], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
or dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], ebx
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
push 0x412d6c
push 0x80000001
mov dword [ebp - 0x14], ebx
call dword [0x41002c]
test eax, eax
mov esi, 0x104
jne 0x40cd93
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
lea eax, [ebp - 0x290]
push eax
push ebx
push ebx
push 0x412d64
push dword [ebp - 0x14]
call dword [0x410028]
test eax, eax
je 0x40cda1
lea eax, [ebp - 0x290]
push esi
push eax
call dword [0x410074]
lea eax, [ebp - 0x290]
push 0x412d4c
push eax
call dword [0x4100f8]
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x290]
push 0x80000000
push eax
call dword [0x4101b0]
mov esi, eax
cmp dword [ebp - 0xc], esi
je 0x40cde2
lea ecx, [ebp - 0xc]
call fcn.0040ac79
mov dword [ebp - 0xc], esi
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 0xc]
call dword [0x410134]
mov esi, eax
cmp dword [ebp - 8], esi
je 0x40ce03
lea ecx, [ebp - 8]
call fcn.0040501e
mov dword [ebp - 8], esi
push ebx
push ebx
push ebx
push 4
push dword [ebp - 8]
call dword [0x410130]
mov esi, eax
cmp dword [ebp - 4], esi
je 0x40ce23
lea ecx, [ebp - 4]
call fcn.0040ac8f
mov dword [ebp - 4], esi
mov esi, dword [ebp - 4]
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x20], esi
call dword [0x410118]
mov edi, eax
push 0x412d3c
add edi, esi
push edi
push esi
call fcn.0040c1ea
mov esi, dword [0x410094]
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x40cea0
add eax, 0xf
push eax
lea eax, [ebp - 0x88]
push eax
call esi
lea eax, [ebp - 0x88]
push eax
push edi
push dword [ebp - 0x24]
call fcn.0040c1ea
add esp, 0xc
cmp eax, ebx
je 0x40cea0
lea ecx, [ebp - 0x88]
inc eax
push ecx
push edi
push eax
call fcn.0040c1ea
add esp, 0xc
cmp eax, ebx
je 0x40cea0
push 0x412d30
push edi
push eax
call fcn.0040c1ea
add esp, 0xc
cmp eax, ebx
jne 0x40cebf
push 0x412d30
push edi
push dword [ebp - 0x20]
call fcn.0040c1ea
add esp, 0xc
cmp eax, ebx
jne 0x40cebf
lea ecx, [ebp - 0x14]
call fcn.0040e044
jmp 0x40cf28
add eax, 0xa
push eax
lea eax, [ebp - 0x18c]
push eax
call esi
lea eax, [ebp - 0x18c]
push 0x412c88
push eax
call dword [0x4100f8]
or dword [ebp - 0x10], 0xffffffff
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x18c]
push 0x80000000
push eax
call dword [0x4101b0]
mov esi, eax
cmp dword [ebp - 0x10], esi
je 0x40cf11
lea ecx, [ebp - 0x10]
call fcn.0040ac79
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40cf44
cmp dword [ebp - 0x14], ebx
je 0x40cf28
push dword [ebp - 0x14]
call dword [0x410010]
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 4], ebx
je 0x40cf39
push dword [ebp - 4]
call dword [0x41012c]
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
mov esi, dword [0x41019c]
jmp 0x40cfb2
push ebx
push dword [ebp - 0x10]
call dword [0x410118]
mov edi, eax
push edi
call fcn.0040b9fc
mov esi, dword [ebp - 0x1c]
pop ecx
lea ecx, [ebp - 0x18]
push ebx
push ecx
push edi
push eax
mov dword [esi + 0x10], eax
push dword [ebp - 0x10]
call dword [0x410190]
test eax, eax
je 0x40cf78
mov ecx, esi
call fcn.0040cfcc
cmp dword [ebp - 0x10], 0xffffffff
mov esi, dword [0x41019c]
je 0x40cf8d
push dword [ebp - 0x10]
call esi
or dword [ebp - 0x10], 0xffffffff
cmp dword [ebp - 0x14], ebx
je 0x40cf9e
push dword [ebp - 0x14]
call dword [0x410010]
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 4], ebx
je 0x40cfaf
push dword [ebp - 4]
call dword [0x41012c]
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
je 0x40cfbc
push dword [ebp - 8]
call esi
mov dword [ebp - 8], ebx
cmp dword [ebp - 0xc], 0xffffffff
je 0x40cfc7
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
leave
ret