Function at 0x4016c0
Capabilities:
Packed with generic packer

Disassembly:
mov eax, dword [0x4102c0]
sub esp, 0x2ec
mov edx, dword [0x4102bc]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax + 4]
push edi
push ecx
call dword [edx + 0x78]
mov ebp, dword [esp + 0x300]
lea ecx, [esp + 0x1f8]
mov edx, ebp
mov edi, 0x104
sub edx, ecx
lea eax, [esp + 0x1f8]
xor ebx, ebx
mov cl, byte [edx + eax]
cmp cl, bl
je 0x40170d
mov byte [eax], cl
inc eax
dec edi
jne 0x4016fe
jmp 0x401711
cmp edi, ebx
jne 0x401712
dec eax
mov edx, dword [0x4102bc]
push ebp
mov byte [eax], bl
call dword [edx + 0x18]
push eax
mov ecx, esi
call fcn.004011f0
test eax, eax
jne 0x401737
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ec
ret 8
xor eax, eax
mov cl, byte [eax + 0x40f5a0]
mov dl, byte [eax + 0x40e030]
cmp cl, dl
jne 0x401974
inc eax
cmp eax, 0xcf8
jb 0x401739
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x10c]
lea ebp, [esi + 4]
stosw word es:[edi], ax
push ebp
lea edx, [esp + 0x30]
push 0xc8
push edx
mov edx, dword [esi]
push 0x40edb0
stosb byte es:[edi], al
lea eax, [esp + 0x28]
mov byte [esp + 0x28], 0x70
mov byte [esp + 0x29], 0x6e
mov byte [esp + 0x2a], bl
push eax
mov eax, dword [edx + ecx*4]
mov ecx, dword [0x4102bc]
push eax
call dword [ecx + 0x110]
test eax, eax
jne 0x4017b8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ec
ret 8
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xf5]
mov byte [esp + 0xf4], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x10c]
push ebp
stosw word es:[edi], ax
lea edx, [esp + 0xf8]
push 0x104
stosb byte es:[edi], al
push edx
mov edx, dword [esi]
lea eax, [esp + 0x1c]
push 0x40edb0
mov byte [esp + 0x20], 0x66
mov byte [esp + 0x21], 0x70
mov byte [esp + 0x22], bl
push eax
mov eax, dword [edx + ecx*4]
mov ecx, dword [0x4102bc]
push eax
call dword [ecx + 0x110]
mov eax, dword [esi + 0x10c]
mov ecx, dword [esi]
push ebp
lea edx, [esp + 0x18]
push ebx
mov byte [esp + 0x1c], 0x64
mov byte [esp + 0x1d], 0x6b
mov byte [esp + 0x1e], bl
push edx
mov edx, dword [ecx + eax*4]
mov eax, dword [0x4102bc]
push edx
call dword [eax + 0x10c]
mov edi, dword [esp + 0x304]
cmp edi, 1
jne 0x401876
cmp eax, edi
je 0x40187d
lea ecx, [esp + 0xf4]
push eax
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [0x4102c0]
push edx
call fcn.0040c8b0
test eax, eax
jne 0x4018ab
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ec
ret 8
cmp edi, 2
je 0x401881
jmp 0x4018bb
push 1
jmp 0x401882
push eax
lea ecx, [esp + 0xf8]
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [0x4102c0]
push edx
call fcn.0040c930
test eax, eax
jne 0x4018ab
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ec
ret 8
mov eax, dword [0x4102bc]
push 0x61a8
jmp 0x418637
mov edx, dword [esi + 0x10c]
mov eax, dword [esi]
push ebp
lea ecx, [esp + 0x20]
push ebx
mov byte [esp + 0x24], 0x74
mov byte [esp + 0x25], 0x6d
mov byte [esp + 0x26], bl
push ecx
mov ecx, dword [eax + edx*4]
mov edx, dword [0x4102bc]
push ecx
call dword [edx + 0x10c]
sub eax, 3
mov dword [esp + 0x20], 1
je 0x401907
sub eax, 0x1c
je 0x4018fb
dec eax
mov dword [esi + 0x120], 7
jmp 0x401942
lea ecx, [esp + 0x24]
mov dword [esi + 0x120], 7
call fcn.0040bf20
lea eax, [esp + 0x20]
lea ecx, [esi + 0x11c]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040bf50
test eax, eax
je 0x40193c
lea ecx, [esp + 0x24]
call fcn.0040c300
cmp dword [esp + 0x20], ebx
je 0x401966
cmp edi, 1
jne 0x401966
mov edx, dword [0x4102bc]
push 0x1388
call dword [edx + 0x108]
mov ecx, esi
call fcn.004012b0
mov ecx, esi
call fcn.00401390
mov ecx, esi
call fcn.00401600
mov ecx, esi
call fcn.004014b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2ec
ret 8