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 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
shl dword [eax + 0x75], 0x18
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
push es
lahf
add eax, dword [eax]
mov eax, ecx
and eax, 0x20
jne 0x43be61
test cl, 0x40
jne 0x43be6d
add byte [edi + 0x5e], bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 0xc]
mov ax, word [esi + 0x58]
cmp byte [edi + 0x90], 7
add byte [eax], al
add byte [edi], al
mov word [edi + 0x88], ax
mov ax, word [esi + 0x5c]
mov word [edi + 0x8a], ax
je 0x401fb7
mov ax, word [esi + 0x60]
mov word [edi + 0x8c], ax
mov ax, word [esi + 0x64]
mov word [edi + 0x8e], ax
lea eax, [ebp - 0x24]
push eax
push dword [edi]
call dword [0x48f634]
or ebx, 0xffffffff
cmp dword [esi + 0x58], ebx
je 0x401fbf
cmp dword [esi + 0x5c], ebx
je 0x401fcc
lea eax, [ebp - 0x24]
push eax
push dword [edi]
call dword [0x48f694]
cmp dword [esi + 0x60], ebx
je 0x43bd2d
cmp dword [esi + 0x64], ebx
je 0x43bd3f
cmp byte [edi + 0x90], 0
jne 0x401f2d
jmp 0x43bd3f
cmp byte [ebp + 0x10], 0
je 0x401f6e
jmp 0x401f58
mov ax, word [ebp - 0x24]
mov word [edi + 0x88], ax
jmp 0x401f82
mov ax, word [ebp - 0x20]
mov word [edi + 0x8a], ax
jmp 0x401f87
je 0x401db6
or byte [ecx], al
call dword [0x8548f71c]
jmp 0x401db6
dec dword [ebx + 0x452be445]
fsub qword [esi - 0x77]
xchg dword [eax + eax + 0x5de9e0bd], ecx
invalid
dec dword [ebx + 0x452be845]
loopne 0x43bdbf
mov dword [edi + 0xf6008e], eax
jmp 0x401f40
add byte [ebx], bh
add byte [ebp - 0x5d7bf02e], al
pushal
cld
dec dword [ecx - 0x6516efab]
pushal
cld
inc edi
inc ebp
or al, 0
add byte [ebx], bh
add byte [ebp - 0x6c7bf0a3], al
pushal
cld
dec dword [ecx - 0x7416f383]
pushal
cld
jmp [edx + 0xf]
sar eax, 1
sub ecx, eax
mov word [ebx - 0x7affff78], cx
mov ecx, dword [ebp - 0x14]
jmp 0x401ee6
popal
cld
dec dword [ebx + 0x10452bc7]
add eax, dword [ebp - 0xc]
imul eax, dword [ebp - 8]
cdq
idiv dword [ebp + 0x10]
sub eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov word [ebx - 0x7affff78], ax
jmp 0x401ee6
adc byte [ebx], ch
inc ebp
hlt
sar eax, 1
sub ecx, eax
mov word [ebx - 0x7affff76], cx
mov ecx, dword [ebp - 0x14]
jmp 0x401f15
push ebp
or byte [ebx], ch
inc ebp
invalid
add byte [ebp - 0x39f0d17], al
jmp dword [esi - 0x77]
add edi, dword [ebp - 8]
add di, word [ebp - 0xc]
mov word [ebx - 0x7affff78], di
jmp 0x401f2c
add byte [ebp - 0x39f4717], al
jmp dword [esi - 0x77]