Function at 0x401db3
Capabilities:
Packed with generic packer

Disassembly:
lea eax, [edi + 1]
pop edi
mov dword [esi + 0xc], eax
pop esi
pop ebp
ret 0x14
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]
inc ebp
fmul dword [ebx + 0x7e8b4456]
dec eax
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
add byte [ebx + 0x4d8bd445], cl
int3
ror dword [ebx + 0x4589d855], 0xf4
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
test cl, cl
js 0x43bdd1
mov eax, dword [ebp + 0xc]
cdq
inc ebp
or al, 0x99
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
add eax, dword [eax]
test cl, 0x40
jne 0x43be6d
rol dword [eax + 0xf], 0x85
inc eax
lahf
add eax, dword [eax]
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
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
mov esi, eax
jmp 0x401d07
adc byte [eax], al
push ecx
call dword [0xb848f71c]
jmp 0x401dc3
inc ebp
fsub qword [esi - 0x77]
xchg dword [ebx + eax*4 + 0x5de91fe7], ecx
invalid
mov es, word [eax]
cmp esi, dword [0xfc61dce9]
inc edi
inc ebp
adc bh, bh
sub eax, 0xd259ffeb
je 0x401e22
dec dword [ecx - 0x6516efab]
pushal
cld
inc edi
inc ebp
or al, 0xff
sub eax, 0xc359ffeb
mov dword [ebp + 0x10], edx
jmp 0x401e22
je 0x401e2a
mov dword [ebp + 0xc], edi
jmp 0x401e2a
cld
dec dword [ebx - 0x307407bb]
sub eax, dword [ebp + 0x10]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov word [ebx + 0x24448988], cx
pop ss
dec ebp
in al, dx
jmp 0x401ef3
sub eax, dword [ebp + 0x10]
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 + 0x24448988], ax
jmp 0x401ef3
cld
dec dword [ebx - 0x3174f701]
sub eax, dword [ebp + 0xc]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov word [ebx + 0x2444898a], cx
pop ss
dec ebp
in al, dx
jmp 0x401f22
or al, 3
inc ebp
invalid
cmp byte [ebp + 8], dl
sub eax, dword [ebp - 0x10]
add eax, edx
or dword [ecx + 0x44898a83], 0x24
jmp 0x401f25
cld
jmp [ebx]
add di, word [ebp - 8]
add di, word [ebp - 0xc]
mov word [ebx + 0x24448988], di
jmp 0x401f39