Function at 0x4146ae
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push esi
push edi
push ebx
mov dword [ebp - 0x108], 0
mov edi, dword [ebp + 8]
cmp dword [edi + 0x5c], 0
jne 0x4146df
test dword [0x42977f], 1
je 0x4149e2
jmp 0x41470d
cmp dword [edi + 0x5c], 1
jne 0x4146f7
test dword [0x429783], 1
je 0x4149e2
jmp 0x41470d
cmp dword [edi + 0x5c], 2
jne 0x41470d
test dword [0x42978b], 1
je 0x4149e2
push dword [ebp + 8]
call fcn.00414e63
or eax, eax
je 0x4149e2
mov esi, eax
cmp dword [esi + 8], 0
jne 0x4149e2
cmp dword [esi + 4], 0
jne 0x41473a
cmp dword [edi + 0x50], 0
jne 0x41473a
jmp 0x4149e2
push dword [edi + 0x4c]
pop dword [esi]
cmp dword [esi + 0x38], 0
jne 0x414935
cmp dword [esi], 1
jne 0x414866
mov eax, dword [edi + 0x58]
cmp eax, 0
jle 0x4149e2
cmp eax, dword [0x42975f]
jg 0x4149e2
dec eax
shl eax, 2
add eax, dword [0x42976f]
mov dword [ebp - 0x110], eax
mov eax, dword [eax]
or eax, eax
jne 0x41485b
jmp 0x41478a
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov dword [ebp - 0x114], 0
cmp dword [edi + 0x64], 0
je 0x4147d0
push 0
push dword [edi + 0x64]
call fcn.004065e2
push esi
mov esi, eax
lodsb al, byte [esi]
cmp al, 0
je 0x4147c9
cmp al, 0x2e
jne 0x4147b8
mov dword [ebp - 0x114], esi
jmp 0x4147b8
pop esi
dec dword [ebp - 0x114]
push dword [ebp - 0x114]
push 0
push 0x414786
push 0x104
lea eax, [ebp - 0x104]
push eax
call fcn.00407692
cmp eax, 0xffffffff
je 0x4149e2
mov dword [ebp - 0x108], eax
push dword [edi + 0x48]
push dword [ebp - 0x108]
call fcn.00409f56
push dword [ebp - 0x108]
call sub.KERNEL32.DLL_CloseHandle
push 4
push 0x1000
push 0x104
push 0
call sub.KERNEL32.DLL_VirtualAlloc
test eax, eax
je 0x4149e2
mov dword [ebp - 0x10c], eax
mov ebx, dword [ebp - 0x110]
mov dword [ebx], eax
push 0x104
push dword [ebp - 0x10c]
lea eax, [ebp - 0x104]
push eax
call fcn.0041df10
jmp 0x41493e
mov dword [ebp - 0x10c], eax
jmp 0x41493e
push 0
push dword [edi + 0x48]
call fcn.004065e2
mov dword [ebp - 0x10c], eax
pushal
push str.:_01
push dword [ebp - 0x10c]
push 1
call fcn.0041ddc8
mov dword [ebp - 0x110], eax
popal
cmp dword [ebp - 0x110], 0
jne 0x414933
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
lea eax, [ebp - 0x104]
push eax
call fcn.0041087c
lea eax, [ebp - 0x104]
push eax
call fcn.004108ef
mov dword [ebp - 0x110], eax
push dword [ebp - 0x10c]
call sub.KERNEL32.DLL_lstrlenA
push eax
push eax
push dword [ebp - 0x110]
push dword [ebp - 0x10c]
call fcn.0041df10
pop eax
add eax, dword [ebp - 0x110]
mov byte [eax], 0
push 4
push 0x1000
push 0x104
push 0
call sub.KERNEL32.DLL_VirtualAlloc
test eax, eax
je 0x4149e2
mov dword [ebp - 0x10c], eax
push 0x104
push dword [ebp - 0x10c]
lea eax, [ebp - 0x104]
push eax
call fcn.0041df10
mov dword [esi + 0xc], 1
jmp 0x41493e
push dword [esi + 0x38]
pop dword [ebp - 0x10c]
cmp dword [ebp - 0x10c], 0
je 0x4149e2
push 0x44
lea eax, [esi + 0x10]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
mov dword [esi + 0x10], 0x44
push dword [0x429048]
pop dword [esi + 0x14]
mov eax, dword [edi + 0x10]
mov dword [esi + 0x24], eax
add eax, dword [edi + 0x18]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x28], eax
add eax, dword [edi + 0x1c]
mov dword [esi + 0x30], eax
mov dword [esi + 0x20], 0x50000000
push dword [edi + 0x54]
pop dword [esi + 0x44]
push dword [edi + 0x60]
pop dword [esi + 0x50]
push dword [edi + 0x5c]
pop dword [esi + 0x1c]
cmp dword [esi + 0x1c], 1
jne 0x4149a8
push dword [0x429787]
pop dword [esi + 0x1c]
jmp 0x4149b1
cmp dword [esi + 0x1c], 2
jne 0x4149b1
inc dword [esi + 0x1c]
push dword [ebp - 0x10c]
pop dword [esi + 0x38]
lea eax, [esi + 0x10]
push eax
call dword [0x43518c]
push dword [edi + 0x30]
push 0x434f6c
call fcn.00406c61
mov dword [esi + 8], 1
mov dword [0x435168], 2
cmp dword [ebp - 0x108], 0xffffffff
je 0x4149f6
push dword [ebp - 0x108]
call sub.KERNEL32.DLL_CloseHandle
pop ebx
pop edi
pop esi
leave
ret 4