Function at 0x440f40
Capabilities:
Packed with generic packer

Disassembly:
pushal
popal
push ebp
push esp
pop ebp
sub esp, 0x11c
mov eax, dword [0x47100c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x104], ecx
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x100], esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xfc], edi
or ecx, ecx
jne 0x440f9d
test edx, edx
je 0x440f9d
call fcn.0044051d
mov dword [eax], 0x16
call fcn.0043bc2c
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434f2b
push ebp
pop esp
pop ebp
ret
test edi, edi
je 0x440f7d
or esi, esi
je 0x440f7d
mov dword [ebp - 0x108], 0
cmp edx, 2
jb 0x4412ca
dec edx
imul edx, edi
push ebx
add edx, ecx
mov dword [ebp - 0xf8], edx
push edx
pop eax
xor edx, edx
sub eax, ecx
div edi
lea ebx, [eax + 1]
cmp ebx, 8
ja 0x440feb
push esi
push edi
push dword [ebp - 0xf8]
push ecx
call fcn.00440e60
add esp, 0x10
jmp 0x4412a2
shr ebx, 1
imul ebx, edi
add ebx, ecx
push ebx
push ecx
push esi
pop ecx
mov dword [ebp - 0x110], ebx
call dword [0x4594fc]
call esi
add esp, 8
or eax, eax
jle 0x44101b
push edi
push ebx
push dword [ebp - 0x104]
call fcn.00440f00
add esp, 0xc
push dword [ebp - 0xf8]
push esi
pop ecx
push dword [ebp - 0x104]
call dword [0x4594fc]
call esi
add esp, 8
or eax, eax
jle 0x44104d
push edi
push dword [ebp - 0xf8]
push dword [ebp - 0x104]
call fcn.00440f00
add esp, 0xc
push dword [ebp - 0xf8]
push esi
pop ecx
push ebx
call dword [0x4594fc]
call esi
add esp, 8
test eax, eax
jle 0x441075
push edi
push dword [ebp - 0xf8]
push ebx
call fcn.00440f00
add esp, 0xc
mov eax, dword [ebp - 0xf8]
push eax
pop edi
mov esi, dword [ebp - 0x104]
mov edx, dword [ebp - 0xfc]
mov dword [ebp - 0x114], eax
nop
cmp ebx, esi
jbe 0x4410cb
add esi, edx
mov dword [ebp - 0x10c], esi
cmp esi, ebx
jae 0x4410c5
mov ecx, dword [ebp - 0x100]
push ebx
push esi
call dword [0x4594fc]
call dword [ebp - 0x100]
mov edx, dword [ebp - 0xfc]
add esp, 8
test eax, eax
jle 0x441094
cmp ebx, esi
ja 0x441102
mov eax, dword [ebp - 0xf8]
mov edi, dword [ebp - 0x100]
add esi, edx
cmp esi, eax
ja 0x4410f6
push ebx
push esi
push edi
pop ecx
call dword [0x4594fc]
call edi
mov edx, dword [ebp - 0xfc]
add esp, 8
or eax, eax
mov eax, dword [ebp - 0xf8]
jle 0x4410d1
mov edi, dword [ebp - 0x114]
mov dword [ebp - 0x10c], esi
mov esi, dword [ebp - 0x100]
jmp 0x441110
mov edx, dword [ebp - 0xfc]
sub edi, edx
cmp edi, ebx
jbe 0x441135
push ebx
push edi
mov ecx, esi
call dword [0x4594fc]
call esi
add esp, 8
or eax, eax
jg 0x441110
mov edx, dword [ebp - 0xfc]
mov esi, dword [ebp - 0x10c]
mov dword [ebp - 0x114], edi
cmp edi, esi
jb 0x4411a3
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x11c], edi
cmp esi, edi
je 0x441188
push esi
pop ebx
mov edx, edi
mov esi, dword [ebp - 0x118]
sub ebx, edi
mov al, byte [edx]
lea edx, [edx + 1]
mov cl, byte [ebx + edx - 1]
mov byte [ebx + edx - 1], al
mov byte [edx - 1], cl
sub esi, 1
jne 0x441161
mov esi, dword [ebp - 0x10c]
mov ebx, dword [ebp - 0x110]
mov edx, dword [ebp - 0xfc]
mov eax, dword [ebp - 0xf8]
cmp ebx, edi
jne 0x441090
mov ebx, esi
mov dword [ebp - 0x110], ebx
jmp 0x441090
add edi, edx
cmp ebx, edi
jae 0x4411db
lea esp, [esp]
sub edi, edx
cmp edi, ebx
jbe 0x4411db
mov ecx, dword [ebp - 0x100]
push ebx
push edi
call dword [0x4594fc]
call dword [ebp - 0x100]
mov edx, dword [ebp - 0xfc]
add esp, 8
or eax, eax
je 0x4411b0
cmp ebx, edi
jb 0x44120a
mov esi, dword [ebp - 0x100]
sub edi, edx
cmp edi, dword [ebp - 0x104]
jbe 0x441204
push ebx
push edi
mov ecx, esi
call dword [0x4594fc]
call esi
mov edx, dword [ebp - 0xfc]
add esp, 8
test eax, eax
je 0x4411e1
mov esi, dword [ebp - 0x10c]
mov edx, dword [ebp - 0xf8]
mov eax, edi
mov ebx, dword [ebp - 0x104]
mov ecx, edx
sub ecx, esi
sub eax, ebx
cmp eax, ecx
jl 0x44125b
cmp ebx, edi
jae 0x44123e
mov eax, dword [ebp - 0x108]
mov dword [ebp + eax*4 - 0xf4], ebx
mov dword [ebp + eax*4 - 0x7c], edi
inc eax
mov dword [ebp - 0x108], eax
mov edi, dword [ebp - 0xfc]
cmp esi, edx
jae 0x441294
mov ecx, esi
mov esi, dword [ebp - 0x100]
mov dword [ebp - 0x104], ecx
jmp 0x440fc5
cmp esi, edx
jae 0x441277
mov eax, dword [ebp - 0x108]
mov dword [ebp + eax*4 - 0xf4], esi
mov dword [ebp + eax*4 - 0x7c], edx
inc eax
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x104]
mov esi, dword [ebp - 0x100]
cmp ecx, edi
jae 0x44129c
mov edx, edi
mov edi, dword [ebp - 0xfc]
jmp 0x440fbf
mov esi, dword [ebp - 0x100]
jmp 0x4412a2
mov edi, dword [ebp - 0xfc]
mov eax, dword [ebp - 0x108]
sub eax, 1
mov dword [ebp - 0x108], eax
js 0x4412c9
mov ecx, dword [ebp + eax*4 - 0xf4]
mov edx, dword [ebp + eax*4 - 0x7c]
mov dword [ebp - 0x104], ecx
jmp 0x440fbf
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00434f2b
push ebp
pop esp
pop ebp
ret