Function at 0x41ed53
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 0x41ed84
test dword [0x43b91b], 1
je 0x41f091
jmp 0x41edbc
cmp dword [edi + 0x5c], 1
jne 0x41eda6
test dword [0x43b91f], 1
je 0x41f091
mov dword [0x44d697], 4
jmp 0x41edbc
cmp dword [edi + 0x5c], 2
jne 0x41edbc
test dword [0x43b927], 1
je 0x41f091
push dword [ebp + 8]
call fcn.0041f523
or eax, eax
je 0x41f091
mov esi, eax
cmp dword [esi + 8], 0
jne 0x41f091
cmp dword [esi + 4], 0
jne 0x41ede9
cmp dword [edi + 0x50], 0
jne 0x41ede9
jmp 0x41f091
push dword [edi + 0x4c]
pop dword [esi]
cmp dword [esi + 0x38], 0
jne 0x41efe4
cmp dword [esi], 1
jne 0x41ef15
mov eax, dword [edi + 0x58]
cmp eax, 0
jle 0x41f091
cmp eax, dword [0x43b8fb]
jg 0x41f091
dec eax
shl eax, 2
add eax, dword [0x43b90b]
mov dword [ebp - 0x110], eax
mov eax, dword [eax]
or eax, eax
jne 0x41ef0a
jmp 0x41ee39
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_RtlZeroMemory
mov dword [ebp - 0x114], 0
cmp dword [edi + 0x64], 0
je 0x41ee7f
push 0
push dword [edi + 0x64]
call fcn.0040a161
push esi
mov esi, eax
lodsb al, byte [esi]
cmp al, 0
je 0x41ee78
cmp al, 0x2e
jne 0x41ee67
mov dword [ebp - 0x114], esi
jmp 0x41ee67
pop esi
dec dword [ebp - 0x114]
push dword [ebp - 0x114]
push 0
push 0x41ee35
push 0x104
lea eax, [ebp - 0x104]
push eax
call fcn.0040b2dd
cmp eax, 0xffffffff
je 0x41f091
mov dword [ebp - 0x108], eax
push dword [edi + 0x48]
push dword [ebp - 0x108]
call fcn.0040eea3
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 0x41f091
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.0042b270
jmp 0x41efed
mov dword [ebp - 0x10c], eax
jmp 0x41efed
push 0
push dword [edi + 0x48]
call fcn.0040a161
mov dword [ebp - 0x10c], eax
pushal
push str.:_01
push dword [ebp - 0x10c]
push 1
call fcn.0042b118
mov dword [ebp - 0x110], eax
popal
cmp dword [ebp - 0x110], 0
jne 0x41efe2
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_RtlZeroMemory
lea eax, [ebp - 0x104]
push eax
call fcn.004165e6
lea eax, [ebp - 0x104]
push eax
call fcn.00416659
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.0042b270
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 0x41f091
mov dword [ebp - 0x10c], eax
push 0x104
push dword [ebp - 0x10c]
lea eax, [ebp - 0x104]
push eax
call fcn.0042b270
mov dword [esi + 0xc], 1
jmp 0x41efed
push dword [esi + 0x38]
pop dword [ebp - 0x10c]
cmp dword [ebp - 0x10c], 0
je 0x41f091
push 0x44
lea eax, [esi + 0x10]
push eax
call sub.KERNEL32.dll_RtlZeroMemory
mov dword [esi + 0x10], 0x44
push dword [0x43b160]
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 0x41f057
push dword [0x43b923]
pop dword [esi + 0x1c]
jmp 0x41f060
cmp dword [esi + 0x1c], 2
jne 0x41f060
inc dword [esi + 0x1c]
push dword [ebp - 0x10c]
pop dword [esi + 0x38]
lea eax, [esi + 0x10]
push eax
call dword [0x44b77c]
push dword [edi + 0x30]
push 0x44b614
call fcn.0040a863
mov dword [esi + 8], 1
mov dword [0x44b758], 2
cmp dword [ebp - 0x108], 0xffffffff
je 0x41f0a5
push dword [ebp - 0x108]
call sub.KERNEL32.dll_CloseHandle
pop ebx
pop edi
pop esi
leave
ret 4