Function at 0x100adeb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0xc
push ebx
push esi
push edi
test al, 1
jne 0x100adecb
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov eax, esi
jmp 0x100adee3
inc eax
cdq
sub eax, edx
cmp dword [ebp + 0x24], 0
je 0x100adedc
sar eax, 1
lea esi, [eax - 1]
jmp 0x100adee3
mov esi, eax
sar esi, 1
lea eax, [esi - 1]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
test al, 1
jne 0x100adef8
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov eax, ecx
jmp 0x100adf15
inc eax
cdq
sub eax, edx
cmp dword [ebp + 0x20], 0
je 0x100adf0e
mov edx, eax
sar edx, 1
mov dword [ebp - 8], edx
lea ecx, [edx - 1]
jmp 0x100adf18
mov ecx, eax
sar ecx, 1
lea eax, [ecx - 1]
mov dword [ebp - 8], eax
mov eax, ecx
mov dword [ebp + 0x14], ecx
and eax, 0x80000001
jns 0x100adf29
dec eax
or eax, 0xfffffffe
inc eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov word [edi + ebx*8], ax
mov word [edi + ebx*8 + 0x10], ax
mov eax, esi
mov word [edi + ebx*8 + 2], dx
mov word [edi + ebx*8 + 0xa], dx
and eax, 0x80000001
jns 0x100adf59
dec eax
or eax, 0xfffffffe
inc eax
jne 0x100adf6e
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov word [edi + ebx*8 + 0xc], ax
mov word [edi + ebx*8 + 0x1c], ax
jmp 0x100adf86
lea eax, [esi + 1]
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax - 1]
mov word [edi + ebx*8 + 0xc], cx
mov word [edi + ebx*8 + 0x1c], cx
mov ecx, dword [ebp + 0x14]
movzx edx, ax
mov word [edi + ebx*8 + 0x14], ax
mov word [edi + ebx*8 + 4], ax
add ax, word [ebp + 0x18]
cmp dword [ebp - 0xc], 0
mov dword [ebp + 0xc], edx
mov word [ebp + 0x12], ax
mov word [edi + ebx*8 + 8], ax
mov word [edi + ebx*8 + 0x18], ax
jne 0x100adfc4
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov word [edi + ebx*8 + 6], ax
movzx ecx, ax
mov word [edi + ebx*8 + 0xe], ax
jmp 0x100adfda
lea eax, [ecx + 1]
cdq
sub eax, edx
sar eax, 1
mov word [edi + ebx*8 + 6], ax
movzx ecx, ax
mov word [edi + ebx*8 + 0xe], ax
dec eax
mov edx, dword [ebp + 0x1c]
mov word [edi + ebx*8 + 0x16], ax
mov word [edi + ebx*8 + 0x1e], ax
mov eax, dword [ebp + 0x18]
add eax, esi
mov dword [ebp + 8], ecx
mov cx, word [edi + ebx*8 + 6]
add cx, dx
mov dword [ebp - 0xc], eax
mov word [edi + ebx*8 + 0x20], ax
mov word [edi + ebx*8 + 0x30], ax
mov eax, dword [ebp + 8]
mov word [edi + ebx*8 + 0x12], cx
mov word [edi + ebx*8 + 0x1a], cx
mov word [edi + ebx*8 + 0x32], cx
mov word [edi + ebx*8 + 0x3a], cx
movzx ecx, word [edi + ebx*8 + 0x16]
mov word [edi + ebx*8 + 0x26], ax
mov word [edi + ebx*8 + 0x2e], ax
mov eax, dword [ebp - 4]
mov word [edi + ebx*8 + 0x22], dx
mov word [edi + ebx*8 + 0x2a], dx
mov word [edi + ebx*8 + 0x36], cx
mov word [edi + ebx*8 + 0x3e], cx
test al, 1
jne 0x100ae059
cdq
sub eax, edx
sar eax, 1
mov word [edi + ebx*8 + 0x24], ax
movzx edx, ax
mov word [edi + ebx*8 + 0x34], ax
jmp 0x100ae06f
inc eax
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax - 1]
mov word [edi + ebx*8 + 0x24], cx
movzx edx, cx
mov word [edi + ebx*8 + 0x34], cx
mov ecx, dword [ebp + 0x18]
mov si, word [edi + ebx*8 + 0x24]
add si, word [ebp - 0xc]
mov word [edi + ebx*8 + 0x3c], ax
mov word [edi + ebx*8 + 0x2c], ax
mov ax, word [ebp + 0x12]
mov word [edi + ebx*8 + 0x48], ax
mov word [edi + ebx*8 + 0x58], ax
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x1c]
mov dword [ebp + 0x18], eax
mov word [edi + ebx*8 + 0x42], ax
mov word [edi + ebx*8 + 0x4a], ax
mov eax, dword [ebp + 0xc]
mov word [edi + ebx*8 + 0x40], cx
mov word [edi + ebx*8 + 0x50], cx
movzx ecx, word [edi + ebx*8 + 0xc]
mov word [edi + ebx*8 + 0x44], ax
mov word [edi + ebx*8 + 0x54], ax
mov eax, dword [ebp - 8]
mov dword [ebp + 8], edx
mov word [edi + ebx*8 + 0x28], si
mov word [edi + ebx*8 + 0x38], si
mov word [edi + ebx*8 + 0x4c], cx
mov word [edi + ebx*8 + 0x5c], cx
test al, 1
jne 0x100ae0f1
cdq
sub eax, edx
sar eax, 1
mov word [edi + ebx*8 + 0x56], ax
mov word [edi + ebx*8 + 0x5e], ax
jmp 0x100ae102
inc eax
cdq
sub eax, edx
sar eax, 1
mov word [edi + ebx*8 + 0x56], ax
mov word [edi + ebx*8 + 0x5e], ax
dec eax
mov ecx, dword [ebp - 0xc]
mov word [edi + ebx*8 + 0x4e], ax
movzx edx, ax
mov word [edi + ebx*8 + 0x46], ax
mov eax, dword [ebp + 0x18]
add eax, edx
mov word [edi + ebx*8 + 0x60], cx
mov word [edi + ebx*8 + 0x52], ax
mov word [edi + ebx*8 + 0x5a], ax
mov word [edi + ebx*8 + 0x72], ax
mov word [edi + ebx*8 + 0x7a], ax
movzx eax, word [edi + ebx*8 + 0x2c]
mov word [edi + ebx*8 + 0x70], cx
mov ecx, dword [ebp + 0x18]
mov word [edi + ebx*8 + 0x6c], ax
mov word [edi + ebx*8 + 0x7c], ax
movzx eax, word [edi + ebx*8 + 0x56]
mov word [edi + ebx*8 + 0x62], cx
mov word [edi + ebx*8 + 0x6a], cx
mov ecx, dword [ebp + 8]
mov word [edi + ebx*8 + 0x68], si
mov word [edi + ebx*8 + 0x78], si
mov word [edi + ebx*8 + 0x64], cx
mov word [edi + ebx*8 + 0x74], cx
mov word [edi + ebx*8 + 0x66], dx
mov word [edi + ebx*8 + 0x6e], dx
mov word [edi + ebx*8 + 0x76], ax
mov word [edi + ebx*8 + 0x7e], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret