Function at 0x401db3
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp byte [esi + 0x3a], 0
jne 0x401f36
mov ebx, dword [ebp + 0xc]
movzx eax, word [ebx + 0x86]
mov dword [ebp - 0x14], eax
in al, dx
lea eax, [ebp - 0x34]
push eax
push dword [esi]
call dword [0x48f634]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov edx, dword [esi + 0x44]
mov edi, dword [esi + 0x48]
mov dword [ebp + 0x10], ecx
dec ebp
adc byte [ecx + 0x55890c45], cl
clc
mov dword [ebp + 8], edi
test ecx, ecx
je 0x43bd51
test eax, eax
je 0x43bd68
cmp dword [esi + 0x19c], 0
jne 0x43bd7f
lea eax, [ebp - 0x34]
push eax
push dword [ebx]
call dword [0x48f694]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
sub eax, ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
sub edx, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], ecx
call dword [0x48f670]
mov edi, dword [ebp - 0x1c]
mov eax, edi
imul eax, dword [ebp - 8]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cdq
idiv dword [ebp + 0x10]
mov word [ebx + 0x88], ax
mov eax, esi
imul eax, dword [ebp + 8]
cdq
idiv dword [ebp + 0xc]
jge 0x401e7b
mov word [ebx + 0x8a], ax
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 8]
cdq
idiv dword [ebp + 0x10]
mov word [ebx + 0x8c], ax
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp + 8]
cdq
idiv dword [ebp + 0xc]
mov word [ebx + 0x8e], ax
test cx, cx
je 0x401f2d
test ecx, 0x100
je 0x401ed3
mov eax, dword [ebp - 0xc]
mov word [ebx + 0x8c], ax
test cl, 6
jne 0x401ed3
test cl, 8
jne 0x43bd91
mov eax, dword [ebp + 0x10]
cdq
sub eax, edx
sar eax, 1
cmp edi, eax
jg 0x43bdaf
test ecx, 0x200
je 0x401f02
mov eax, dword [ebp - 0x10]
mov word [ebx + 0x8e], ax
test cl, 0x60
jne 0x401f02
test cl, cl
js 0x43bdd1
mov eax, dword [ebp + 0xc]
cdq
sub eax, edx
sar eax, 1
cmp esi, eax
jg 0x43bdef
mov edx, dword [ebp + 8]
mov eax, ecx
and eax, 2
jne 0x43be13
test cl, 4
jne 0x43be1f
mov eax, ecx
and eax, 0x20
jne 0x43be61
test cl, 0x40
jne 0x43be6d
or al, 0
mov edi, dword [ebp + 0xc]
jge 0x401f45
mov ax, word [esi + 0x58]
cmp byte [edi + 0x90], 7
mov word [edi + 0x88], ax
mov dword [edi + 0x88], eax
mov ax, word [esi + 0x5c]
mov word [edi + 0x8a], ax
je 0x401fb7
mov ax, word [esi + 0x60]
mov word [edi + 0x8c], ax
cmp byte [ebp + 0x10], 0
je 0x401f6e
jmp 0x401f58
inc ecx
mov al, 0x4d
call dword [0x6648f71c]
jmp 0x401dd5
mov word [ecx + 0x4c], cs
add cl, ch
pop ebp
invalid
fsub qword [ecx - 4]
inc edi
inc ebp
adc byte [ebp - 0x48], bl
invalid
dec dword [ecx - 0x6516efab]
pushal
cld
inc edi
inc ebp
or al, 0x5d
mov eax, 0x3a45c70f
je 0x401e3c
mov dword [ebp + 0xc], edi
jmp 0x401e3c
cld
jmp [edx + 0xf]
enter 0xffffffffffff8966, 0xffffffffffffff8b
mov ah, al
mov eax, dword [eax + esi*2 - 3]
in al, dx
jmp 0x401f05
jge 0x43be01
sub eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov word [ebx + 0x448bc488], ax
jmp 0x401f05
cld
dec dword [ebx - 0x3174f7b4]
sub eax, dword [ebp + 0xc]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov word [ebx + 0x448bc48a], cx
mov dword [ebx + 0x448bc48a], ecx
inc esp
jo 0x43be18
in al, dx
jmp 0x401f34
cld
dec dword [ebx + 0xc452bc6]
add eax, dword [ebp - 0x10]
imul eax, dword [ebp + 8]
cdq
idiv dword [ebp + 0xc]
add byte [ebp + 8], dl
sub eax, dword [ebp - 0x10]
pop esp
jecxz 0x43bea0
mov dword [ebx + 0x448bc48a], eax
jmp 0x401f37
add di, word [ebp - 8]
add di, word [ebp - 0xc]
mov word [ebx + 0x4c498c], di
jmp 0x401f4b
dec ecx
dec esp
add cl, ch
salc
pushal
cld
jmp [ebx]
in al, dx
je 0x43bec0
push ds
sub si, word [ebx + 0x448bc48a]
sub si, word [ebp + 0xc]
add si, dx
cld
jmp dword [esi + 0x2b]