Function at 0x4216a1
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push esi
push edi
push ebx
mov dword [ebp - 0x108], 0xffffffff
mov edi, dword [ebp + 8]
cmp dword [edi + 0x5c], 0
jne 0x4216d2
test dword [0x441938], 1
je 0x421a23
jmp 0x42170a
cmp dword [edi + 0x5c], 1
jne 0x4216f4
test dword [0x44193c], 1
je 0x421a23
mov dword [0x45391f], 4
jmp 0x42170a
cmp dword [edi + 0x5c], 2
jne 0x42170a
test dword [0x441944], 1
je 0x421a23
push dword [ebp + 8]
call fcn.00421ebc
or eax, eax
je 0x421a23
mov esi, eax
cmp dword [esi + 8], 0
jne 0x421a23
cmp dword [esi + 4], 0
jne 0x421737
cmp dword [edi + 0x50], 0
jne 0x421737
jmp 0x421a23
push dword [edi + 0x4c]
pop dword [esi]
cmp dword [esi + 0x38], 0
jne 0x421964
cmp dword [esi], 1
jne 0x421895
cmp dword [edi + 0x68], 1
jne 0x421778
cmp dword [edi + 0x64], 0
je 0x421778
push 0
push 2
push dword [edi + 0x6c]
push dword [edi + 0x64]
push dword [edi + 0x48]
call fcn.0040ffed
mov dword [ebp - 0x10c], eax
jmp 0x42196d
mov eax, dword [edi + 0x58]
cmp eax, 0
jle 0x421a23
cmp eax, dword [0x441918]
jg 0x421a23
dec eax
shl eax, 2
add eax, dword [0x441928]
mov dword [ebp - 0x110], eax
mov eax, dword [eax]
or eax, eax
jne 0x42188a
jmp 0x4217b0
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_RtlZeroMemory
mov dword [ebp - 0x114], 0
cmp dword [edi + 0x64], 0
je 0x4217f6
push 0
push dword [edi + 0x64]
call fcn.0040c1be
push esi
mov esi, eax
lodsb al, byte [esi]
cmp al, 0
je 0x4217ef
cmp al, 0x2e
jne 0x4217de
mov dword [ebp - 0x114], esi
jmp 0x4217de
pop esi
dec dword [ebp - 0x114]
push dword [ebp - 0x114]
push 0
push 0x4217ac
push 0x104
lea eax, [ebp - 0x104]
push eax
call fcn.0040d354
cmp eax, 0xffffffff
je 0x421a23
mov dword [ebp - 0x108], eax
push 0
push dword [edi + 0x48]
push dword [ebp - 0x108]
call fcn.0041136b
push dword [ebp - 0x108]
call sub.KERNEL32.dll_CloseHandle
mov dword [ebp - 0x108], 0xffffffff
push 4
push 0x1000
push 0x104
push 0
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
je 0x421a23
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.0042e300
jmp 0x421890
mov dword [ebp - 0x10c], eax
jmp 0x42196d
push 0
push dword [edi + 0x48]
call fcn.0040c1be
mov dword [ebp - 0x10c], eax
pushal
push str.:_01
push dword [ebp - 0x10c]
push 1
call fcn.0042e1a8
mov dword [ebp - 0x110], eax
popal
cmp dword [ebp - 0x110], 0
jne 0x421962
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_RtlZeroMemory
lea eax, [ebp - 0x104]
push eax
call fcn.00418d1a
lea eax, [ebp - 0x104]
push eax
call fcn.00418d8d
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.0042e300
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 0x421a23
mov dword [ebp - 0x10c], eax
push 0x104
push dword [ebp - 0x10c]
lea eax, [ebp - 0x104]
push eax
call fcn.0042e300
mov dword [esi + 0xc], 1
jmp 0x42196d
push dword [esi + 0x38]
pop dword [ebp - 0x10c]
cmp dword [ebp - 0x10c], 0
je 0x421a23
push 0x44
lea eax, [esi + 0x10]
push eax
call sub.KERNEL32.dll_RtlZeroMemory
mov dword [esi + 0x10], 0x44
push dword [0x441160]
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 0x4219d7
push dword [0x441940]
pop dword [esi + 0x1c]
jmp 0x4219e0
cmp dword [esi + 0x1c], 2
jne 0x4219e0
inc dword [esi + 0x1c]
cmp dword [esi + 0x1c], 3
jne 0x4219f2
cmp dword [0x441948], 7
jne 0x4219f2
inc dword [esi + 0x1c]
push dword [ebp - 0x10c]
pop dword [esi + 0x38]
lea eax, [esi + 0x10]
push eax
call dword [0x451a04]
push dword [edi + 0x30]
push 0x45189c
call fcn.0040c8d4
mov dword [esi + 8], 1
mov dword [0x4519e0], 2
cmp dword [ebp - 0x108], 0xffffffff
je 0x421a37
push dword [ebp - 0x108]
call sub.KERNEL32.dll_CloseHandle
pop ebx
pop edi
pop esi
leave
ret 4