Function at 0x100020ac
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x4eea53fc]
mov dword [ebp - 4], eax
and dword [ebp - 0x20], 0
push ebx
push esi
push edi
pushal
call dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edx
popal
mov eax, dword [ebp - 0x38]
mov cl, byte [eax + 2]
mov byte [ebp - 0x1c], cl
mov cl, byte [eax + 5]
mov byte [ebp - 0x1b], cl
mov cl, byte [eax + 8]
mov byte [ebp - 0x1a], cl
mov cl, byte [eax + 0xb]
mov byte [ebp - 0x19], cl
mov cl, byte [eax + 0xe]
mov byte [ebp - 0x18], cl
mov al, byte [eax + 0x11]
mov byte [ebp - 0x17], al
mov eax, dword [ebp - 0x3c]
xor edi, edi
xor ecx, ecx
add eax, 2
mov dl, byte [eax]
add eax, 3
mov byte [ebp + ecx - 0x48], dl
inc ecx
cmp ecx, 8
jb 0x10002103
lea eax, [ebp - 0x1a]
shl eax, 2
push edi
lea eax, [ebp + eax - 0x20]
push eax
push edi
push edi
call fcn.1000244f
add esp, 0x10
cmp dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], edi
jbe 0x100022d8
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
push dword [ebp + 0x18]
lea ecx, [eax + ecx*8]
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
push dword [ebp + 0x14]
mov edx, eax
push dword [ebp + 0x1c]
shl edx, 0x18
push dword [ebp + 0xc]
sub esi, edx
mov ecx, eax
shl ecx, 0x10
sub esi, ecx
mov ecx, eax
shl ecx, 0xc
sub esi, ecx
sub esi, eax
add esi, dword [ebp + 0x14]
lea ecx, [ebp - 0x74]
lea ebx, [eax + esi]
push ebx
push esi
mov dword [ebp - 0x40], ebx
call fcn.10003cf0
lea ecx, [ebp - 0x74]
call fcn.10003cec
test al, al
jne 0x1000228d
lea ecx, [ebp - 0x74]
call fcn.10003ce2
test al, al
jne 0x1000228d
lea ecx, [ebp - 0x74]
call fcn.10003cd5
lea ecx, [ebp - 0x74]
mov ebx, eax
call fcn.10003cd1
cmp word [ebp + 0x2c], 2
mov dword [ebp - 0x30], eax
jne 0x100021d2
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push ebx
push esi
call fcn.10003c20
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x28]
push esi
push eax
call dword [ebp + 0x20]
add esp, 0x10
cmp word [ebp + 0x2c], 3
jne 0x100021f8
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push ebx
push esi
call fcn.10003c20
cmp word [ebp + 0x2c], 2
jne 0x10002214
push 1
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x30]
add eax, ebx
push eax
push ebx
call fcn.10003c20
mov ecx, dword [ebp - 0x30]
mov eax, ecx
shr ecx, 2
mov esi, ebx
lea edi, [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 8]
and ecx, 3
neg eax
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x30]
push esi
lea eax, [ebp - 0x14]
push eax
call fcn.10003c11
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + esi - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [ebp + 0x20]
add esp, 0x10
cmp word [ebp + 0x2c], 3
jne 0x1000226e
push 1
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + ebx]
push eax
push ebx
call fcn.10003c20
lea ecx, [ebp - 0x74]
add esi, ebx
call fcn.10003c0d
lea ecx, [ebp - 0x74]
call fcn.10003ce2
xor edi, edi
test al, al
je 0x100021a7
mov ebx, dword [ebp - 0x40]
cmp word [ebp + 0x2c], 2
jne 0x100022a3
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push ebx
push esi
call fcn.10003c20
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x28]
push esi
push eax
call dword [ebp + 0x20]
add esp, 0x10
cmp word [ebp + 0x2c], 3
jne 0x100022c9
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push ebx
push esi
call fcn.10003c20
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x20]
jb 0x10002143
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x10]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.10002301
mov ecx, dword [ebp - 4]
call 0x1002ba09
pop edi
pop esi
pop ebx
leave
ret 0x28