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
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
mov dword [ebp + 0xc], eax
mov dword [ebp - 8], edx
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 dword [ebx + 0x88], eax
mov eax, esi
imul eax, dword [ebp + 8]
cdq
idiv dword [ebp + 0xc]
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
mov edi, dword [ebp + 0xc]
mov ax, word [esi + 0x58]
cmp byte [edi + 0x90], 7
mov word [edi + 0x88], ax
mov ax, word [esi + 0x5c]
add byte [esi - 0x75], ah
inc esi
pop esp
mov word [edi + 0x8a], ax
je 0x401fb7
mov ax, word [esi + 0x60]
mov word [edi + 0x8c], ax
add byte [eax], al
mov ax, word [esi + 0x64]
mov word [edi + 0x8e], ax
cmp byte [ebp + 0x10], 0
je 0x401f6e
jmp 0x401f58
cmp byte [ecx - 0xf74fbba], cl
push ebx
pop esp
call dword [0xeb48f71c]
jmp 0x401deb
add byte [eax], al
add cl, ch
pop ebp
invalid
add byte [eax], cl
add cl, ch
fsub qword [ecx - 4]
inc edi
inc ebp
adc byte [ecx], al
add byte [eax], al
add byte [ebp - 0x5d7bf02e], al
pushal
cld
dec dword [ecx - 0x6516efab]
pushal
cld
inc edi
inc ebp
or al, 1
add byte [eax], al
add byte [ebp - 0x6c7bf001], al
pushal
cld
dec dword [ecx - 0x7416f383]
pushal
cld
jmp [edx + 0xf]
mov dword [ebp + 8], edi
jmp 0x401e5f
mov ecx, dword [ebp - 0x14]
jmp 0x401f1b
hlt
jmp 0x43bdfe
inc ebp
or al, 0x99
sub eax, edx
sar eax, 1
sub ecx, eax
mov word [ebx - 0x14ffff76], cx
mov ecx, dword [ebp - 0x14]
jmp 0x401f4a
invalid
jmp 0x43be4c
sub edi, dword [ebx - 0x14ffff78]
sub di, word [ebp + 0x10]
add di, word [ebp - 8]
add di, word [ebp - 0xc]
mov word [ebx + 0x8c], di
jmp 0x401f61